Copy all build output to /demo
This commit is contained in:
parent
6f0a222e17
commit
af2be5c1e0
@ -44,15 +44,17 @@ cd ..
|
|||||||
echo $DEPLOY_PRIME_URL
|
echo $DEPLOY_PRIME_URL
|
||||||
export ROOT_URL=$DEPLOY_PRIME_URL/demo
|
export ROOT_URL=$DEPLOY_PRIME_URL/demo
|
||||||
|
|
||||||
# cat package.json
|
yarn install
|
||||||
# yarn install
|
yarn build:web
|
||||||
# yarn build
|
|
||||||
|
|
||||||
|
# OLD DEPLOY
|
||||||
# cd example
|
# cd example
|
||||||
# yarn install
|
# yarn install
|
||||||
# yarn run prepare
|
# yarn run prepare
|
||||||
# sed -i "s,http://localhost:5000,${ROOT_URL},g" index.html
|
# sed -i "s,http://localhost:5000,${ROOT_URL},g" index.html
|
||||||
# sed -i 's,"routerBasename": "/","routerBasename": "/demo",g' index.html
|
# sed -i 's,"routerBasename": "/","routerBasename": "/demo",g' index.html
|
||||||
# rm -rf node_modules
|
# rm -rf node_modules
|
||||||
# mkdir docs/latest/_book/demo/
|
|
||||||
# cp -R * docs/latest/_book/demo/
|
# NEW DEPLOY
|
||||||
|
mkdir docs/latest/_book/demo/
|
||||||
|
cp -R /build/**/* docs/latest/_book/demo/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user