feat: restaura o projeto original do clube67.com (Next.js + Express API + MySQL + Redis) livre de gambiarras e dockerizado
This commit is contained in:
@@ -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,
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user