mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
deployment stuff
This commit is contained in:
parent
9986143dc2
commit
73086e3c15
1 changed files with 42 additions and 0 deletions
42
config/ecosystem-dev.json5
Normal file
42
config/ecosystem-dev.json5
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
/**
|
||||
* This is a sample configuration file for PM2
|
||||
*/
|
||||
|
||||
/**
|
||||
* Here we declare the apps that must be managed by PM2
|
||||
* All options are listed here:
|
||||
* https://github.com/Unitech/PM2/blob/master/ADVANCED_README.md#json-app-declaration
|
||||
*
|
||||
*/
|
||||
apps : [
|
||||
|
||||
// Development
|
||||
{
|
||||
name : "chuck-dev",
|
||||
script : "server.js",
|
||||
env : {
|
||||
NODE_ENV: "dev",
|
||||
PORT: "1234"
|
||||
}
|
||||
}
|
||||
|
||||
],
|
||||
|
||||
|
||||
/**
|
||||
* PM2 help you to deploy apps over your servers
|
||||
* For more help go to :
|
||||
* https://github.com/Unitech/PM2/blob/master/ADVANCED_README.md#deployment-pm2--090
|
||||
*/
|
||||
deploy : {
|
||||
dev : {
|
||||
user : "chuck",
|
||||
host : "fuuuuu.de",
|
||||
ref : "origin/controls",
|
||||
repo : "https://github.com/logsol/chuck.js.git",
|
||||
path : "/home/chuck/development",
|
||||
"post-deploy" : "npm install && pm2 startOrRestart config/ecosystem-dev.json5 --env dev",
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue