From 5a4cec5ae82e0aa9abf7309d25322506c301873b Mon Sep 17 00:00:00 2001 From: Jeena Date: Thu, 2 Apr 2015 23:01:02 +0200 Subject: [PATCH] added production2 fixes #125 --- config/ecosystem.json5 | 8 ++++++++ scripts/deploy.sh | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/config/ecosystem.json5 b/config/ecosystem.json5 index cce5157..5742398 100644 --- a/config/ecosystem.json5 +++ b/config/ecosystem.json5 @@ -37,6 +37,14 @@ repo : "https://github.com/logsol/chuck.js.git", path : "/home/chuck/production", "post-deploy" : "npm install && NODE_ENV=production sh scripts/build.sh && pm2 startOrRestart config/ecosystem.json5 --env production" + }, + production2 : { + user : "chuck", + host : "fuuuuu.de", + ref : "origin/master", + repo : "https://github.com/logsol/chuck.js.git", + path : "/home/chuck/production", + "post-deploy" : "npm install && NODE_ENV=production sh scripts/build.sh && pm2 startOrRestart config/ecosystem.json5 --env production" } } } diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 79e2290..60b20ff 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -15,4 +15,10 @@ then exit fi +if [ "$1" == "production2" ] +then + pm2 deploy $DIR/config/ecosystem.json5 production2 + exit +fi + echo "Case ($1) not defined. doing nothing." \ No newline at end of file