gitpod
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -14,7 +14,5 @@ node_modules
|
||||
.env.*
|
||||
yarn.lock
|
||||
.installed
|
||||
run.sh
|
||||
build.sh
|
||||
package-lock.json
|
||||
dist
|
||||
|
||||
@@ -2,7 +2,7 @@ image:
|
||||
file: .gitpod.Dockerfile
|
||||
# # Commands to start on workspace startup
|
||||
tasks:
|
||||
- command: sudo /etc/init.d/redis-server start && sudo publishtools develop --repo www_threefold_io
|
||||
- command: run.sh
|
||||
ports:
|
||||
- port: 8080
|
||||
onOpen: open-browser
|
||||
|
||||
@@ -15,7 +15,7 @@ bash nvm.sh
|
||||
|
||||
export NVM_DIR=$base
|
||||
source $base/nvm.sh
|
||||
nvm install $lts
|
||||
nvm install --lts
|
||||
nvm use --lts
|
||||
|
||||
cp /tmp/package.json .
|
||||
|
||||
22
run.sh
Normal file
22
run.sh
Normal file
@@ -0,0 +1,22 @@
|
||||
set -ex
|
||||
|
||||
rm -f yarn.lock
|
||||
rm -rf .cache
|
||||
|
||||
|
||||
export base=/nodejs
|
||||
|
||||
source $base/nvm.sh
|
||||
nvm use --lts
|
||||
|
||||
rsync -ra --delete $base/node_modules/ node_modules/
|
||||
|
||||
npm install
|
||||
|
||||
export PATH=$base/bin:\$PATH
|
||||
|
||||
if [ -f vue.config.js ]; then
|
||||
npm run-script serve
|
||||
else
|
||||
gridsome develop
|
||||
fi
|
||||
Reference in New Issue
Block a user