More agressive with modifying PATH
This commit is contained in:
parent
ea3f7d5657
commit
dab0b5e0e3
@ -11,7 +11,10 @@ echo '~~~~~~~~~~ root ~~~~~~~~~~~~'
|
||||
npm root -g
|
||||
|
||||
# Make sure `node` can access globally installed binaries
|
||||
export PATH=$PATH:/opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules
|
||||
export PATH="$PATH:/opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules"
|
||||
source ~/.profile
|
||||
source ~/.bashrc
|
||||
|
||||
|
||||
# Install GitBook CLI
|
||||
echo 'Installing Gitbook CLI'
|
||||
@ -29,8 +32,12 @@ for D in *; do
|
||||
|
||||
# Clear previous output, generate new
|
||||
rm -rf _book
|
||||
echo "~~~ try 1"
|
||||
node gitbook install
|
||||
node gitbook gitbook build
|
||||
echo "~~~ try 2"
|
||||
node /opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/gitbook install
|
||||
node /opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/gitbook gitbook build
|
||||
# /usr/lib/node_modules/gitbook-cli/
|
||||
|
||||
cd ..
|
||||
@ -38,6 +45,10 @@ for D in *; do
|
||||
fi
|
||||
done
|
||||
|
||||
cd /opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/
|
||||
ls
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
# Move CNAME File into `latest`
|
||||
cp CNAME ./latest/_book/CNAME
|
||||
|
||||
|
||||
@ -5,6 +5,11 @@
|
||||
"platform/*",
|
||||
"extensions/*"
|
||||
],
|
||||
"engines": {
|
||||
"node": "^10.0.0",
|
||||
"npm": "^6.0.0",
|
||||
"yarn": "^1.17.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "lerna run lerna:start --parallel",
|
||||
"build": "lerna run lerna:build --parallel"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user