feat: restaura o projeto original do clube67.com (Next.js + Express API + MySQL + Redis) livre de gambiarras e dockerizado

This commit is contained in:
VPS 4 Builder
2026-05-18 20:57:05 +02:00
parent cb3a71c082
commit b4b0ad0a53
244 changed files with 28512 additions and 16680 deletions
+29
View File
@@ -0,0 +1,29 @@
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,
},
],
};