Fix static site generation
This commit is contained in:
parent
11d36a4e6b
commit
f2ca5629c8
3
.gitignore
vendored
3
.gitignore
vendored
@ -8,4 +8,5 @@ node_modules
|
||||
npm-debug.log
|
||||
Packages/active-entry/helloworld/
|
||||
LesionTracker/tests/nightwatch/reports/
|
||||
docs/_book
|
||||
docs/_book
|
||||
OHIFViewer-react/build/
|
||||
@ -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/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user