30 lines
922 B
JavaScript
30 lines
922 B
JavaScript
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'clube67-api',
|
|
script: './backend/dist/index.js',
|
|
cwd: '/www/wwwroot/clube67.com',
|
|
instances: 'max',
|
|
exec_mode: 'cluster',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
PORT: 3001,
|
|
},
|
|
env_development: {
|
|
NODE_ENV: 'development',
|
|
PORT: 3001,
|
|
},
|
|
max_memory_restart: '500M',
|
|
log_file: '/www/wwwroot/clube67.com/logs/pm2-combined.log',
|
|
error_file: '/www/wwwroot/clube67.com/logs/pm2-error.log',
|
|
out_file: '/www/wwwroot/clube67.com/logs/pm2-out.log',
|
|
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
|
|
merge_logs: true,
|
|
watch: false,
|
|
autorestart: true,
|
|
restart_delay: 1000,
|
|
max_restarts: 10,
|
|
},
|
|
],
|
|
};
|