This commit is contained in:
2021-07-11 12:32:50 +00:00
parent 84ccbd1ffa
commit c5a1e41519
7 changed files with 70 additions and 39 deletions

29
gitpod/run.sh Normal file
View File

@@ -0,0 +1,29 @@
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
rsync -rav --delete $base/node_modules/ node_modules/
#make sure all modules are there
npm install
if [ -f vue.config.js ]; then
npm run-script serve
else
gridsome develop
fi