mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04: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
|
||||
|
||||
return [
|
||||
'baseUrl' => 'http://jigsaw-docs-staging.tighten.co',
|
||||
'baseUrl' => env('DEPLOY_URL') . '/docs',
|
||||
'production' => false,
|
||||
|
||||
// DocSearch credentials
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@ environment = { PHP_VERSION = "7.2" }
|
|||
publish = "/dist"
|
||||
command = "./build.sh"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "./staging.sh"
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/master/*"
|
||||
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