added production2 fixes #125

This commit is contained in:
Jeena 2015-04-02 23:01:02 +02:00
parent aff23e8de0
commit 5a4cec5ae8
2 changed files with 14 additions and 0 deletions

View file

@ -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"
}
}
}

View file

@ -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."