-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
34 lines (33 loc) · 831 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
34 lines (33 loc) · 831 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
const pkg = require('./package.json');
module.exports = {
apps: [
{
name: "daily-reading-dev",
version: pkg.version,
script: "npm",
args: "run dev",
cwd: "./",
watch: false,
env: {
NODE_ENV: "development",
PORT: 3000
},
// Retry strategy
exp_backoff_restart_delay: 100,
max_restarts: 10,
},
{
name: "daily-reading-prod",
version: pkg.version,
script: "npm",
args: "run start",
cwd: "./",
watch: false,
env: {
NODE_ENV: "production",
PORT: 3000
},
exp_backoff_restart_delay: 100,
}
]
};