Skip to content

Commit 183c665

Browse files
committed
deploy: Add PM2 config file.
1 parent 8d26e33 commit 183c665

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

ecosystem.config.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
apps: [
3+
{
4+
name: 'bot',
5+
script: 'npm run serve',
6+
instances: 1,
7+
autorestart: true,
8+
watch: false,
9+
max_restarts: 10,
10+
restart_delay: 5000,
11+
max_memory_restart: '200M',
12+
env: {
13+
NODE_ENV: 'development',
14+
},
15+
env_production: {
16+
NODE_ENV: 'production',
17+
},
18+
error_file: 'logs/err.log',
19+
out_file: 'logs/out.log',
20+
},
21+
],
22+
}

0 commit comments

Comments
 (0)