-
Notifications
You must be signed in to change notification settings - Fork 3
/
process.config.js
46 lines (43 loc) · 1.1 KB
/
process.config.js
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
39
40
41
42
43
44
45
46
var path = require('path');
module.exports = {
/** Main frontend pm2 config */
"apps" : [{
"name" : "game-client",
"script" : "node_modules/nuxt/bin/nuxt-start",
"watch" : false,
"env" : {
"NODE_ENV" : "development",
"PORT" : 8091,
"HOST" : "0.0.0.0"
},
"env_production" : {
"NODE_ENV" : "production",
"PORT" : 8081,
"HOST" : "0.0.0.0"
},
"instances" : 1,
"exec_mode" : "cluster",
"log_file": "/var/log/pm2/combined.log",
"out_file": "/var/log/pm2/out.log",
"error_file": "/var/log/pm2/err.log"
},
/** Frontend SPA pm2 config */
{
"name" : "spa",
"script" : "node_modules/nuxt/bin/nuxt-start",
"args" : "--spa",
"watch" : false,
"env" : {
"NODE_ENV" : "development",
"PORT" : 8093,
"HOST" : "0.0.0.0"
},
"env_production" : {
"NODE_ENV" : "production",
"PORT" : 8083,
"HOST" : "0.0.0.0"
},
"instances" : 1,
"exec_mode" : "cluster"
}]
};