From f2ca5629c845375ca7237c746c86d8f45271c6b7 Mon Sep 17 00:00:00 2001 From: Erik Ziegler Date: Mon, 17 Dec 2018 20:45:30 +0100 Subject: [PATCH] Fix static site generation --- .gitignore | 3 ++- generateStaticSite.sh | 20 +++++++------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 2e15e6d39..ba1908ec6 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ node_modules npm-debug.log Packages/active-entry/helloworld/ LesionTracker/tests/nightwatch/reports/ -docs/_book \ No newline at end of file +docs/_book +OHIFViewer-react/build/ \ No newline at end of file diff --git a/generateStaticSite.sh b/generateStaticSite.sh index 60bfcbaa2..f71707eb1 100755 --- a/generateStaticSite.sh +++ b/generateStaticSite.sh @@ -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/