-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem.config.js
40 lines (40 loc) · 1.16 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
module.exports = {
apps : [
{
name: "notify.slack",
script: "./notify.slack.js",
env: {
"NODE_ENV": "development",
"REDIS_HOST": "127.0.0.1",
"REDIS_PORT": "6379",
"QUEUE_PREFIX": "squeue",
"SLACK_WEBHOK_URL": '/#####/#####/#####',
},
env_production: {
"NODE_ENV": "production",
"REDIS_HOST": "127.0.0.1",
"REDIS_PORT": "6379",
"QUEUE_PREFIX": "squeue",
"SLACK_WEBHOK_URL": '/#####/#####/#####',
}
},
{
name: "sync.queue.worker",
script: "./sync.queue.worker.js",
autorestart: false,
cron_restart: "*/1 * * * *",
env: {
"NODE_ENV": "development",
"REDIS_HOST": "127.0.0.1",
"REDIS_PORT": "6379",
"QUEUE_PREFIX": "squeue",
},
env_production: {
"NODE_ENV": "production",
"REDIS_HOST": "127.0.0.1",
"REDIS_PORT": "6379",
"QUEUE_PREFIX": "squeue",
}
}
]
};