-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathecosystem.config.js
43 lines (37 loc) · 1 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
/**
* Copyright 2017 aixigo AG
* Released under the MIT license.
* https://github.com/aixigo/arestocats/blob/master/LICENSE
*/
/**
* PM2 application configuration
* http://pm2.keymetrics.io/docs/usage/application-declaration/
*/
module.exports = {
apps: [
// Test-Runner REST-API
{
name: 'backend',
interpreter: 'node',
interpreter_args: '--harmony_object_rest_spread --trace-warnings',
script: 'index.js',
watch: true,
ignore_watch: [ './node_modules', './frontend' ],
max_restarts: 1,
min_uptime: 10 * 1000,
log_date_format: 'YYYY-MM-DD HH:mm Z',
env: {
DEBUG: 'arestocats*'
}
},
// Frontend (webpack development server)
{
name: 'frontend',
cwd: './frontend',
interpreter: 'node',
watch: false,
script: './frontend/node_modules/webpack-dev-server/bin/webpack-dev-server.js',
args: '--inline --hot'
}
]
};