Use homepage to fix static site deploy preview

This commit is contained in:
Erik Ziegler 2018-12-17 21:23:50 +01:00
parent fbfc3f6163
commit fa0bcfe31f

View File

@ -10,9 +10,11 @@ echo 'Running Gitbook installation'
cd ..
# Build and copy the StandaloneViewer into the static directory
# echo $DEPLOY_PRIME_URL
# export ROOT_URL=$DEPLOY_PRIME_URL:/viewer/
echo $DEPLOY_PRIME_URL
cd OHIFViewer-react
export ROOT_URL=$DEPLOY_PRIME_URL:/viewer/
sed -i 's,https://docs.ohif.org/viewer,${ROOT_URL},g' package.json
cat package.json
npm install
npm run build
mkdir ../docs/_book/viewer/