diff --git a/examples/process-file/process-exec.config.js b/examples/process-file/process-exec.config.js new file mode 100644 index 00000000..b3ce8a84 --- /dev/null +++ b/examples/process-file/process-exec.config.js @@ -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' + }] +} diff --git a/examples/process-file/process.config.js b/examples/process-file/process.config.js index 79be357a..798a6312 100644 --- a/examples/process-file/process.config.js +++ b/examples/process-file/process.config.js @@ -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',