We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef466e0 commit 9f7bef0Copy full SHA for 9f7bef0
routes.js
@@ -13,6 +13,10 @@ module.exports = function(github) {
13
});
14
}
15
16
+ github.on('chewb-live:refs/heads/master', function(data) {
17
+ _exec('chewb-live')
18
+ })
19
+
20
github.on('chewb-cron:refs/heads/master', function(data) {
21
_exec('chewb-cron')
22
})
sh/chewb-live.sh
@@ -0,0 +1,17 @@
1
+#!/usr/bin/env bash
2
3
+REPO='[email protected]:jacobjobelie/chewb-live.git';
4
+RELEASE="/home/samradelie/www/rad/";
5
6
+# Fetch Latest Code
7
+pm2 stop chewb-live
8
+pm2 delete chewb-live
9
+if [ -d "$RELEASE" ]; then
10
+ cd $RELEASE
11
+ git pull origin master
12
+else
+ git clone -b master $REPO $RELEASE;
+fi
+cd $RELEASE
+npm i
+pm2 start index.js --name chewb-live -f
0 commit comments