mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Add command for staging env (#33)
This commit is contained in:
parent
99655ea7e0
commit
1dc9b6c986
3 changed files with 14 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'baseUrl' => 'http://jigsaw-docs-staging.tighten.co',
|
'baseUrl' => env('DEPLOY_URL') . '/docs',
|
||||||
'production' => false,
|
'production' => false,
|
||||||
|
|
||||||
// DocSearch credentials
|
// DocSearch credentials
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,9 @@ environment = { PHP_VERSION = "7.2" }
|
||||||
publish = "/dist"
|
publish = "/dist"
|
||||||
command = "./build.sh"
|
command = "./build.sh"
|
||||||
|
|
||||||
|
[context.deploy-preview]
|
||||||
|
command = "./staging.sh"
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/docs/master/*"
|
from = "/docs/master/*"
|
||||||
to = "/docs/v2/:splat"
|
to = "/docs/v2/:splat"
|
||||||
|
|
|
||||||
10
staging.sh
Executable file
10
staging.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
set -e
|
||||||
|
|
||||||
|
npm install
|
||||||
|
npm run production
|
||||||
|
cd docs
|
||||||
|
composer install
|
||||||
|
npm install
|
||||||
|
npm run staging
|
||||||
|
mkdir -p ../dist/docs
|
||||||
|
cp -R build_staging/* ../dist/docs
|
||||||
Loading…
Add table
Add a link
Reference in a new issue