mirror of
https://gitlab.silvrtree.co.uk/martind2000/old-silvrgit.git
synced 2025-01-10 22:05:07 +00:00
updated today.js
This commit is contained in:
parent
023cfb182e
commit
e6c9afa058
@ -18,6 +18,38 @@
|
||||
env_production : {
|
||||
NODE_ENV: "production"
|
||||
}
|
||||
},
|
||||
|
||||
// Second application
|
||||
{
|
||||
name : "WEB",
|
||||
script : "web.js"
|
||||
}
|
||||
]
|
||||
],
|
||||
|
||||
/**
|
||||
* Deployment section
|
||||
* http://pm2.keymetrics.io/docs/usage/deployment/
|
||||
*/
|
||||
deploy : {
|
||||
production : {
|
||||
user : "node",
|
||||
host : "212.83.163.1",
|
||||
ref : "origin/master",
|
||||
repo : "git@github.com:repo.git",
|
||||
path : "/var/www/production",
|
||||
"post-deploy" : "npm install ; pm2 startOrRestart ecosystem.json --env production"
|
||||
},
|
||||
dev : {
|
||||
user : "node",
|
||||
host : "212.83.163.1",
|
||||
ref : "origin/master",
|
||||
repo : "git@github.com:repo.git",
|
||||
path : "/var/www/development",
|
||||
"post-deploy" : "npm install ; pm2 startOrRestart ecosystem.json --env dev",
|
||||
env : {
|
||||
NODE_ENV: "dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user