-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.js
49 lines (49 loc) · 1.02 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
module.exports = {
apps: [
{
name: 'naa-api',
cwd: './apps/api/dist',
script: './main.js',
args: ['-p', '6010'],
autorestart: true,
watch: true,
ignore_watch: ['node_modules', 'public', 'logs'],
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
},
env_development: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
},
env_test: {
NODE_ENV: 'test',
},
},
{
name: 'naa-docs',
cwd: './apps/docs/node_modules/.bin/next',
script: 'pnpm start',
args: 'start',
max_memory_restart: '1G',
autorestart: true,
watch: true,
ignore_watch: ['node_modules', 'public'],
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
},
env_development: {
NODE_ENV: 'development',
},
env_production: {
NODE_ENV: 'production',
},
env_test: {
NODE_ENV: 'test',
},
},
],
};