25 lines
547 B
JavaScript
25 lines
547 B
JavaScript
// PM2 Ecosystem Konfiguration
|
|
// Starten mit: pm2 start ecosystem.config.js
|
|
|
|
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'plusfit24',
|
|
script: 'app.js',
|
|
cwd: '/var/www/plusfit24',
|
|
instances: 1,
|
|
autorestart: true,
|
|
watch: false,
|
|
max_memory_restart: '300M',
|
|
env: {
|
|
NODE_ENV: 'production',
|
|
PORT: 3100
|
|
},
|
|
error_file: '/var/log/pm2/plusfit24-error.log',
|
|
out_file: '/var/log/pm2/plusfit24-out.log',
|
|
log_date_format: 'YYYY-MM-DD HH:mm:ss',
|
|
time: true
|
|
}
|
|
]
|
|
};
|