Fix static site generation

This commit is contained in:
Erik Ziegler 2018-12-17 20:45:30 +01:00
parent 11d36a4e6b
commit f2ca5629c8
2 changed files with 9 additions and 14 deletions

3
.gitignore vendored
View File

@ -8,4 +8,5 @@ node_modules
npm-debug.log
Packages/active-entry/helloworld/
LesionTracker/tests/nightwatch/reports/
docs/_book
docs/_book
OHIFViewer-react/build/

View File

@ -10,16 +10,10 @@ echo 'Running Gitbook installation'
cd ..
# Build and copy the StandaloneViewer into the static directory
cd StandaloneViewer
echo $DEPLOY_PRIME_URL
export ROOT_URL=$DEPLOY_PRIME_URL:/viewer/
export METEOR_PACKAGE_DIRS="../../Packages"
mkdir buildDirectory
cd StandaloneViewer
npm install -g meteor-build-client-fixed@0.4.3
meteor-build-client-fixed --version
curl https://install.meteor.com | /bin/sh
export PATH=$HOME/.meteor:$PATH
meteor npm install
meteor npm run details
meteor-build-client-fixed ../../docs/_book/viewer -u $ROOT_URL --path './'
# echo $DEPLOY_PRIME_URL
# export ROOT_URL=$DEPLOY_PRIME_URL:/viewer/
cd OHIFViewer-react
yarn install
yarn run build
mkdir ../docs/_book/viewer/
cp -R build/* ../docs/_book/viewer/