-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
38 lines (38 loc) · 1.11 KB
/
ecosystem.config.cjs
File metadata and controls
38 lines (38 loc) · 1.11 KB
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: 'prod',
script: 'dist/index.js',
instances: 1,
autorestart: true,
watch: true,
node_args: '--experimental-specifier-resolution=node --max-old-space-size=256',
source_map_support: true,
ignore_watch: ['node_modules', 'log', '.git', '.idea', 'var'],
env: {
NODE_ENV: 'production',
NODE_DEBUG: false,
TZ: 'Europe/Kiev',
NTBA_FIX_319: 1,
},
}, {
name: 'dev',
script: 'dist/index.js',
instances: 1,
autorestart: true,
watch: true,
ignore_watch: ['node_modules', 'log', '.git', '.idea', 'src', 'var'],
node_args: '--experimental-specifier-resolution=node --max-old-space-size=256',
source_map_support: true,
env: {
NODE_ENV: 'development',
NODE_DEBUG: false,
TZ: 'Europe/Kiev',
NTBA_FIX_319: 1,
},
env_production: {
NODE_ENV: 'production',
NODE_DEBUG: false,
NTBA_FIX_319: 1
},
}],
};