Skip to content

Commit 049cfc5

Browse files
committed
feat: update PORT configuration in .env.example and add ecosystem.config.js for process management
1 parent 3afe1da commit 049cfc5

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
GITHUB_TOKEN=your_github_personal_access_token_here
2-
PORT=3000
2+
PORT=3102
33
APP_ENV=development

ecosystem.config.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
apps: [
3+
{
4+
name: 'github-stats',
5+
script: './dist/index.js',
6+
instances: 'max',
7+
exec_mode: 'cluster',
8+
autorestart: true,
9+
watch: false,
10+
max_memory_restart: '1G',
11+
env_production: {
12+
NODE_ENV: 'production',
13+
PORT: 3102
14+
},
15+
error_file: './logs/err.log',
16+
out_file: './logs/out.log',
17+
log_file: './logs/combined.log',
18+
time: true,
19+
merge_logs: true,
20+
kill_timeout: 5000,
21+
wait_ready: true,
22+
listen_timeout: 10000,
23+
shutdown_with_message: true
24+
}
25+
],
26+
};

0 commit comments

Comments
 (0)