forked from ParabolInc/parabol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pm2.dev.config.js
38 lines (38 loc) · 863 Bytes
/
pm2.dev.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
module.exports = {
apps: [
{
name: 'GQL/Socket Server',
script: 'scripts/gqlServers.js',
instances: 1,
autorestart: true,
watch: ['packages/server', 'packages/gql-executor'],
ignore_watch: ['**/__tests__'],
max_memory_restart: '3000M',
env_production: {
NODE_ENV: 'development'
}
},
{
name: 'Web Server',
script: 'scripts/hmrServer.js',
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '3000M',
env_production: {
NODE_ENV: 'development'
}
},
{
name: 'Relay Compiler',
script: 'scripts/relayCompiler.js',
instances: 1,
autorestart: true,
watch: ['schema.graphql'],
max_memory_restart: '3000M',
env_production: {
NODE_ENV: 'development'
}
}
]
}