Skip to content

Commit 46adce3

Browse files
committed
feat: update ecosystem.config.js for improved app configuration and logging
1 parent 049cfc5 commit 46adce3

1 file changed

Lines changed: 14 additions & 17 deletions

File tree

ecosystem.config.js

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
11
module.exports = {
22
apps: [
33
{
4-
name: 'github-stats',
5-
script: './dist/index.js',
6-
instances: 'max',
4+
name: 'studio.pphat.top:3102',
5+
port: 3102,
76
exec_mode: 'cluster',
8-
autorestart: true,
9-
watch: false,
10-
max_memory_restart: '1G',
11-
env_production: {
7+
instances: 'max',
8+
script: './dist/index.js',
9+
env: {
1210
NODE_ENV: 'production',
13-
PORT: 3102
11+
PORT: 3102,
1412
},
15-
error_file: './logs/err.log',
16-
out_file: './logs/out.log',
17-
log_file: './logs/combined.log',
18-
time: true,
13+
error_file: './logs/error.log',
14+
out_file: './logs/output.log',
15+
log_date_format: 'YYYY-MM-DD HH:mm:ss',
1916
merge_logs: true,
20-
kill_timeout: 5000,
21-
wait_ready: true,
22-
listen_timeout: 10000,
23-
shutdown_with_message: true
24-
}
17+
18+
max_restarts: 10,
19+
min_uptime: '10s',
20+
max_memory_restart: '500M'
21+
},
2522
],
2623
};

0 commit comments

Comments
 (0)