Browse Source

ecosystem

master
zeus 4 years ago
parent
commit
5e272e29c2
  1. 10
      swarmlab-app/startup.sh

10
swarmlab-app/startup.sh

@ -95,7 +95,7 @@ module.exports = {
"name" : "playground-nodejs",
"autorestart" : true,
"watch" : true,
"script" : "/home/ubuntu/project/tutor/$REPO/swarmlab-app/src/run/app.js",
"script" : "/home/ubuntu/project/$REPO/swarmlab-app/src/run/app.js",
"args" : "start",
"pid_file" : "/home/ubuntu/run/pid.pid",
"log_type" : "json",
@ -120,12 +120,14 @@ chmod +x /home/ubuntu/crond/playground.config.js
read -r -d '' VAR <<EOF
#!/bin/bash
cd /home/ubuntu/project/tutor/$REPO
if [ ! -d "$REPO" ] ; then
git clone $GIT_TUTOR
else
cd /home/ubuntu/project/$REPO
git fetch origin master
git reset --hard FETCH_HEAD
git clean -df
fi
EOF
echo "$VAR" > /home/ubuntu/crond/playground-sync.sh

Loading…
Cancel
Save