-
Notifications
You must be signed in to change notification settings - Fork 12
/
ecosystem.config.js
63 lines (62 loc) · 1.19 KB
/
ecosystem.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
const { execSync } = require('child_process')
const nodePath = execSync(`npm root --quiet -g`, { encoding: 'utf-8' }).split(
'\n',
)[0]
const args = {
autorestart: true,
watch: false,
max_memory_restart: '230M',
env: {
NODE_ENV: 'production',
NODE_PATH: nodePath,
},
}
module.exports = {
apps: [
{
name: 'Mog Gateway',
script: 'out/core/index.js',
...args,
},
{
name: 'Mog Config',
script: 'out/config-service/index.js',
...args,
},
{
name: 'Mog Friends',
script: 'out/friends-service/index.js',
...args,
},
{
name: 'Mog User',
script: 'out/user-service/index.js',
...args,
},
{
name: 'Mog Pages',
script: 'out/page-service/index.js',
...args,
},
{
name: 'Mog Notifications',
script: 'out/notification-service/index.js',
...args,
},
{
name: 'Mog Comments',
script: 'out/comments-service/index.js',
...args,
},
{
name: 'Mog Themes',
script: 'out/themes-service/index.js',
...args,
},
{
name: 'Mog Store',
script: 'out/store-service/index.js',
...args,
}
],
}