(JSON config) alias script to exec

This commit is contained in:
Unitech 2017-01-16 13:39:02 +01:00
parent ef4e9a88f8
commit c8da3ac148
2 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,25 @@
module.exports = {
apps : [{
name : 'HTTP-API',
exec : 'http.js',
exec_mode : 'cluster',
instances : 'max',
max_memory_restart : '260M',
ignore_watch : ['node_modules'],
watch : true,
env : {
NODE_ENV : 'normal'
},
env_production : {
NODE_ENV : 'production'
}
}, {
name : 'Worker',
exec : 'worker.js',
err_file : 'toto-err.log'
}, {
name : 'Checks',
script : 'connection_check.sh'
}]
}

View File

@ -1,7 +1,7 @@
module.exports = {
apps : [{
name : 'HTTP-API',
script : 'http.js',
exec : 'http.js',
exec_mode : 'cluster',
instances : 'max',
max_memory_restart : '260M',