ajout du pm2 pour installtion debian 12

This commit is contained in:
SarTron-NorthBlue
2025-11-20 20:28:34 +04:00
parent eeae058233
commit 2134afdda8
6 changed files with 1839 additions and 41 deletions

24
ecosystem.config.js Normal file
View File

@@ -0,0 +1,24 @@
module.exports = {
apps: [{
name: 'runlock',
script: 'npm',
args: 'start',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 3000
},
error_file: './logs/pm2-error.log',
out_file: './logs/pm2-out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,
// Redémarrer automatiquement après un crash
min_uptime: '10s',
max_restarts: 10,
restart_delay: 4000
}]
}