mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
(JSON config) alias script to exec
This commit is contained in:
parent
ef4e9a88f8
commit
c8da3ac148
25
examples/process-file/process-exec.config.js
Normal file
25
examples/process-file/process-exec.config.js
Normal 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'
|
||||
}]
|
||||
}
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user