-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
38 lines (33 loc) · 831 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
38 lines (33 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
apps: [{
name: 'as-decoder',
script: './dist/server.js',
instances: 1,
exec_mode: 'fork',
// Auto-restart configuration
autorestart: true,
watch: ['dist'], // Watch dist folder for changes (set to false to disable)
max_memory_restart: '1G',
// Environment variables
env: {
NODE_ENV: 'production',
PORT: 20080
},
env_development: {
NODE_ENV: 'development',
PORT: 20080
},
// Logging
log_file: './logs/combined.log',
out_file: './logs/out.log',
error_file: './logs/error.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
// Restart strategy
min_uptime: '10s',
max_restarts: 10,
// Advanced options
kill_timeout: 5000,
wait_ready: true,
listen_timeout: 10000
}]
};