Files
www_threefold_io/gitpod/run.sh
2021-07-11 12:49:54 +00:00

33 lines
435 B
Bash

set -e
export base=/nodejs
export PATH=$base/bin:$PATH
source $base/nvm.sh
nvm install --lts
nvm use --lts
#go to the website
cd ..
rm -f yarn.lock
rm -rf .cache
#copy from the docker image to speedup
echo "sync node modules to website"
rsync -ra --delete $base/node_modules/ node_modules/
echo "done"
#make sure all modules are there
npm install
if [ -f vue.config.js ]; then
npm run-script serve
else
gridsome develop
fi