We may have figured it out johnny, boy
This commit is contained in:
parent
ab4067144f
commit
bc8d505a0a
@ -7,16 +7,17 @@ cd "$(dirname "$0")"
|
|||||||
# Helpful to verify which versions we're using
|
# Helpful to verify which versions we're using
|
||||||
yarn -v
|
yarn -v
|
||||||
node -v
|
node -v
|
||||||
echo '~~~~~~~~~~ root ~~~~~~~~~~~~'
|
|
||||||
npm root -g
|
|
||||||
|
|
||||||
yarn global bin
|
# echo '~~~~~~~~~~ root ~~~~~~~~~~~~'
|
||||||
yarn config get prefix
|
# npm root -g
|
||||||
yarn config set prefix ~/.yarn
|
# yarn global bin
|
||||||
|
# yarn config set prefix ~/.yarn
|
||||||
# export PATH="$PATH:`yarn global bin`"
|
# export PATH="$PATH:`yarn global bin`"
|
||||||
export PATH="$PATH:$(yarn global bin)"
|
# export PATH="$PATH:$(yarn global bin)"
|
||||||
export PATH="$PATH:/opt/buildhome/.nvm/versions/node/v10.16.0/bin"
|
# export PATH="$PATH:/opt/buildhome/.nvm/versions/node/v10.16.0/bin"
|
||||||
export PATH="$PATH:/opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/bin"
|
# export PATH="$PATH:/opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/bin"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Install GitBook CLI
|
# Install GitBook CLI
|
||||||
echo 'Installing Gitbook CLI'
|
echo 'Installing Gitbook CLI'
|
||||||
@ -35,23 +36,13 @@ for D in *; do
|
|||||||
|
|
||||||
# Clear previous output, generate new
|
# Clear previous output, generate new
|
||||||
rm -rf _book
|
rm -rf _book
|
||||||
echo "~~~ try 1"
|
|
||||||
node gitbook install
|
|
||||||
node gitbook build
|
|
||||||
echo "~~~ try 2"
|
|
||||||
node /opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/bin/gitbook.js install
|
node /opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/bin/gitbook.js install
|
||||||
node /opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/bin/gitbook.js build
|
node /opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/bin/gitbook.js build
|
||||||
# /usr/lib/node_modules/gitbook-cli/
|
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
cd /opt/buildhome/.nvm/versions/node/v10.16.0/lib/node_modules/gitbook-cli/
|
|
||||||
ls
|
|
||||||
cd "$(dirname "$0")"
|
|
||||||
|
|
||||||
# Move CNAME File into `latest`
|
# Move CNAME File into `latest`
|
||||||
cp CNAME ./latest/_book/CNAME
|
cp CNAME ./latest/_book/CNAME
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user