-
Notifications
You must be signed in to change notification settings - Fork 12
/
ecosystem.bundle.config.js
63 lines (62 loc) · 1.17 KB
/
ecosystem.bundle.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: './core/index.js',
...args,
},
{
name: 'Mog Config',
script: './config-service/index.js',
...args,
},
{
name: 'Mog Friends',
script: './friends-service/index.js',
...args,
},
{
name: 'Mog User',
script: './user-service/index.js',
...args,
},
{
name: 'Mog Pages',
script: './page-service/index.js',
...args,
},
{
name: 'Mog Notifications',
script: './notification-service/index.js',
...args,
},
{
name: 'Mog Comments',
script: './comments-service/index.js',
...args,
},
{
name: 'Mog Themes',
script: './themes-service/index.js',
...args,
},
{
name: 'Mog Store',
script: './store-service/index.js',
...args,
}
],
}