forked from WatWowMap/ReactMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.example.js
41 lines (41 loc) · 1.01 KB
/
ecosystem.config.example.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
module.exports = {
apps: [
{
name: 'ReactMap',
script: 'ReactMap.js',
instances: 1,
autorestart: false,
cron_restart: '*/60 */24 * * *',
exec_mode: 'fork',
max_memory_restart: '1G',
env_production: {
NODE_ENV: 'production',
},
},
// Advanced, comment out or remove the above block if you uncomment these two
// {
// name: 'RM_Client',
// script: 'yarn build && yarn generate',
// instances: 1,
// autorestart: false,
// cron_restart: '*/60 */24 * * *',
// exec_mode: 'fork',
// max_memory_restart: '1G',
// env_production: {
// NODE_ENV: 'production',
// },
// },
// {
// name: 'RM_Server',
// script: 'server/src/index.js',
// instances: 4,
// cron_restart: '*/60 */24 * * *',
// exec_mode: 'cluster',
// autorestart: true,
// max_memory_restart: '4G',
// env_production: {
// NODE_ENV: 'production',
// },
// },
],
}