finally got pm2 deploy to work

This commit is contained in:
David Baldwynn 2016-05-20 13:09:17 -07:00
parent 1e0f6a172f
commit b2d7ac57c2
2 changed files with 44 additions and 1 deletions

1
.gitignore vendored
View File

@ -16,7 +16,6 @@ Oscar_Credentials.*
# Node and related ecosystem
# ==========================
ecosystem.json
.nodemonignore
.sass-cache/
npm-debug.log

44
ecosystem.json Normal file
View File

@ -0,0 +1,44 @@
{
"apps" : [{
"name" : "tellform",
"script" : "/usr/local/bin/grunt",
}],
"deploy" : {
"stage" : {
"user" : "polydaic",
"host" : "159.203.42.158",
"ref" : "origin/stage",
"repo" : "git@github.com:whitef0x0/tellform.git",
"path" : "/opt/deploy",
"post-deploy" : "npm install && bower install && pm2 startOrRestart ecosystem.json --env production",
"env" : {
"NODE_ENV": "production",
"BASE_URL": "stage.tellform.com"
}
},
"prod" : {
"user" : "polydaic",
"host" : "159.203.33.182",
"ref" : "origin/master",
"repo" : "git@github.com:whitef0x0/tellform.git",
"path" : "/opt/deploy",
"post-deploy" : "npm install && bower install && pm2 startOrRestart ecosystem.json --env production",
"env" : {
"NODE_ENV": "production",
"BASE_URL": "admin.tellform.com"
}
},
"kmc" : {
"user" : "polydaic",
"host" : "159.203.2.71",
"ref" : "origin/master",
"repo" : "git@github.com:whitef0x0/tellform.git",
"path" : "/opt/deploy",
"post-deploy" : "npm install && bower install && pm2 startOrRestart ecosystem.json --env production",
"env" : {
"NODE_ENV": "production",
"BASE_URL": "kmc.tellform.com"
}
}
}
}