Use homepage to fix static site deploy preview
This commit is contained in:
parent
fbfc3f6163
commit
fa0bcfe31f
@ -10,9 +10,11 @@ echo 'Running Gitbook installation'
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Build and copy the StandaloneViewer into the static directory
|
# Build and copy the StandaloneViewer into the static directory
|
||||||
# echo $DEPLOY_PRIME_URL
|
echo $DEPLOY_PRIME_URL
|
||||||
# export ROOT_URL=$DEPLOY_PRIME_URL:/viewer/
|
|
||||||
cd OHIFViewer-react
|
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 install
|
||||||
npm run build
|
npm run build
|
||||||
mkdir ../docs/_book/viewer/
|
mkdir ../docs/_book/viewer/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user