-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecosystem_prod.json
42 lines (41 loc) · 1.08 KB
/
ecosystem_prod.json
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
{
"apps": [
{
"name": "ImportGames",
"script": "./bin/worker",
"args": [
"--settings", "settings/prod.json",
"--delay=2000",
"lib/strategy/sportRadar/UpdateGamesStrategy.coffee"
],
"exec_interpreter": "coffee",
"exec_mode": "fork",
"instances": 1,
"max_memory_restart": "1024M"
},
{
"name": "ImportFutureGames",
"script": "./bin/worker",
"args": [
"--settings", "settings/prod.json",
"--delay=3600000",
"lib/strategy/sportRadar/ImportFutureGamesStrategy.coffee"
],
"exec_interpreter": "coffee",
"exec_mode": "fork",
"instances": 1,
"max_memory_restart": "1024M"
}
],
"deploy": {
"prod": {
"user": "root",
"password": "g2EMwbKFMMcL31DHZuEX",
"host": "do.pickk-prod",
"ref": "origin/master",
"repo": "https://pickk:[email protected]/pickk/pickk-import.git",
"path": "/opt/pickk-import",
"post-deploy": "npm install && pm2 startOrRestart ecosystem_prod.json --env prod"
}
}
}