You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
567 B
28 lines
567 B
module.exports = { |
|
apps: [{ |
|
name: 'your-app-name', |
|
script: './src/app.js', |
|
instances: 'max', |
|
exec_mode: 'cluster', |
|
env: { |
|
NODE_ENV: 'development', |
|
PORT: 3000 |
|
}, |
|
env_beta: { |
|
NODE_ENV: 'staging', |
|
PORT: 3001 |
|
}, |
|
env_production: { |
|
NODE_ENV: 'production', |
|
PORT: 3000 |
|
}, |
|
error_file: './logs/err.log', |
|
out_file: './logs/out.log', |
|
log_file: './logs/combined.log', |
|
time: true, |
|
max_memory_restart: '1G', |
|
restart_delay: 4000, |
|
max_restarts: 10, |
|
min_uptime: '10s' |
|
}] |
|
}; |