-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
45 lines (42 loc) · 929 Bytes
/
ecosystem.config.js
File metadata and controls
45 lines (42 loc) · 929 Bytes
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
/** ****************************************************************************************************
* File: ecosystem.config.js
* Project: node-docker
* @author Nick Soggin <iSkore@users.noreply.github.com> on 11-Mar-2019
*******************************************************************************************************/
'use strict';
const
{
name,
version,
main: script
} = require( './package.json' );
process.title = `${ name }-${ version }`;
module.exports = {
apps: [
{
name,
script,
exec_mode: 'cluster',
instances: 0,
watch: false,
autorestart: true,
max_memory_restart: '1G',
restartDelay: 5000,
node_args: [
'--no-warnings',
'--max_old_space_size=4096'
],
env: {
NODE_ENV: 'development',
DEBUG: true
},
env_development: {
NODE_ENV: 'development',
DEBUG: true
},
env_production: {
NODE_ENV: 'production'
}
}
]
};