29 lines
653 B
JavaScript
29 lines
653 B
JavaScript
module.exports = {
|
|
apps: [{
|
|
name: 'insurance-backend',
|
|
script: 'src/app.js',
|
|
instances: 1,
|
|
exec_mode: 'fork',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
PORT: 3000,
|
|
FRONTEND_URL: 'https://ad.ningmuyun.com'
|
|
},
|
|
env_production: {
|
|
NODE_ENV: 'production',
|
|
PORT: 3000,
|
|
FRONTEND_URL: 'https://ad.ningmuyun.com'
|
|
},
|
|
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',
|
|
watch: false,
|
|
ignore_watch: ['node_modules', 'logs']
|
|
}]
|
|
};
|