This commit is contained in:
2021-08-26 14:28:06 +02:00
parent 3859c66293
commit 315bd82129
3 changed files with 0 additions and 57 deletions

View File

@@ -1,25 +0,0 @@
source /home/gitpod/publisher/nvm.sh && nvm use --lts && export PATH=/home/gitpod/publisher/versions/node/v14.17.5/bin:$PATH
set -e
cd /workspace/www_threefold_io
set +e
if [ -f vue.config.js ]; then
npm run-script build
else
gridsome build
fi
set -e
mkdir -p /home/gitpod/publisher/publish/
rsync -ra --delete /workspace/www_threefold_io/dist/ /home/gitpod/publisher/publish//
cd /workspace/www_threefold_io/dist
#echo go to http://localhost:9999/
#python3 -m http.server 9999

View File

@@ -1,19 +0,0 @@
source /home/gitpod/publisher/nvm.sh && nvm use --lts && export PATH=/home/gitpod/publisher/versions/node/v14.17.5/bin:$PATH
set -e
cd /workspace/www_threefold_io
rm -f yarn.lock
rm -rf .cache
if [ "true" = "true" ]; then
npm install
rsync -ra --delete node_modules/ /home/gitpod/publisher/node_modules/
else
rsync -ra --delete /home/gitpod/publisher/node_modules/ node_modules/
npm install
fi

13
run.sh
View File

@@ -1,13 +0,0 @@
source /home/gitpod/publisher/nvm.sh && nvm use --lts && export PATH=/home/gitpod/publisher/versions/node/v14.17.5/bin:$PATH
set -e
cd /workspace/www_threefold_io
if [ -f vue.config.js ]; then
npm run-script serve
else
gridsome develop
fi