mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
added production2 fixes #125
This commit is contained in:
parent
aff23e8de0
commit
5a4cec5ae8
2 changed files with 14 additions and 0 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
Loading…
Add table
Add a link
Reference in a new issue