forked from hack-chat/main
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpm2.config.js
More file actions
33 lines (33 loc) · 704 Bytes
/
pm2.config.js
File metadata and controls
33 lines (33 loc) · 704 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
module.exports = {
apps : [{
name : 'hackchat-websocket',
node_args : '-r esm',
script : './server/main.js',
instances: 1,
autorestart: true,
max_memory_restart: '2G',
exec_mode: 'fork',
watch : false,
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
}, {
name: 'hackchat-httpd',
script: './node_modules/http-server/bin/http-server',
args: './client -p 3000 -o',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '2G',
exec_mode: 'fork',
env: {
NODE_ENV: 'development'
},
env_production: {
NODE_ENV: 'production'
}
}]
};