gitpod
This commit is contained in:
@@ -23,3 +23,16 @@ npm install --global @gridsome/cli
|
|||||||
cd /workspace
|
cd /workspace
|
||||||
git clone https://github.com/threefoldfoundation/data_threefold
|
git clone https://github.com/threefoldfoundation/data_threefold
|
||||||
|
|
||||||
|
#go to the website
|
||||||
|
cd /workspace/www_threefold_io
|
||||||
|
|
||||||
|
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
|
||||||
|
|||||||
@@ -1,30 +1,15 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
|
||||||
export base=/nodejs
|
export base=/nodejs
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export PATH=$base/bin:$PATH
|
export PATH=$base/bin:$PATH
|
||||||
|
|
||||||
source $base/nvm.sh
|
source $base/nvm.sh
|
||||||
|
|
||||||
nvm install --lts
|
|
||||||
nvm use --lts
|
nvm use --lts
|
||||||
|
|
||||||
#go to the website
|
#go to the website
|
||||||
cd ..
|
cd /workspace/www_threefold_io
|
||||||
|
|
||||||
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
|
if [ -f vue.config.js ]; then
|
||||||
npm run-script serve
|
npm run-script serve
|
||||||
|
|||||||
Reference in New Issue
Block a user