ohif-viewer/generateStaticSite.sh

24 lines
707 B
Bash
Executable File

cd docs
npm -v
node -v
echo 'Installing Gitbook CLI'
npm install
echo 'Running Gitbook installation'
./node_modules/gitbook-cli/bin/gitbook.js install
./node_modules/gitbook-cli/bin/gitbook.js build
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-fixed2@0.4.3-b
meteor-build-client-fixed2 --version
curl https://install.meteor.com | /bin/sh
export PATH=$HOME/.meteor:$PATH
meteor npm install
meteor-build-client-fixed2 ../../docs/_book/viewer -u $ROOT_URL --path './' --legacy