refactor
This commit is contained in:
29
build.sh
29
build.sh
@@ -1,29 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
set -e
|
|
||||||
cd /workspace/code//github/threefoldfoundation/www_threefold_io
|
|
||||||
|
|
||||||
#set +e
|
|
||||||
#source /workspace/codewiki/nvm.sh
|
|
||||||
#set -e
|
|
||||||
#nvm use --lts
|
|
||||||
|
|
||||||
#export PATH=/bin:$PATH
|
|
||||||
|
|
||||||
set +e
|
|
||||||
if [ -f vue.config.js ]; then
|
|
||||||
npm run-script build
|
|
||||||
else
|
|
||||||
gridsome build
|
|
||||||
fi
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
mkdir -p /workspace/codewiki/publish/www_threefold_io
|
|
||||||
rsync -ra --delete /workspace/code//github/threefoldfoundation/www_threefold_io/dist/ /workspace/codewiki/publish/www_threefold_io/
|
|
||||||
|
|
||||||
cd /workspace/code//github/threefoldfoundation/www_threefold_io/dist
|
|
||||||
|
|
||||||
#echo go to http://localhost:9999/
|
|
||||||
#python3 -m http.server 9999
|
|
||||||
|
|
||||||
25
install.sh
25
install.sh
@@ -1,25 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cd /workspace/code//github/threefoldfoundation/www_threefold_io
|
|
||||||
|
|
||||||
rm -f yarn.lock
|
|
||||||
rm -rf .cache
|
|
||||||
|
|
||||||
#set +e
|
|
||||||
#source /workspace/codewiki/nvm.sh
|
|
||||||
#set -e
|
|
||||||
|
|
||||||
if [ "true" = "true" ]; then
|
|
||||||
#nvm use --lts
|
|
||||||
npm install
|
|
||||||
rsync -ra --delete node_modules/ /workspace/codewiki/node_modules/
|
|
||||||
else
|
|
||||||
rsync -ra --delete /workspace/codewiki/node_modules/ node_modules/
|
|
||||||
#nvm use --lts
|
|
||||||
npm install
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user