-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathecosystem.config.json
59 lines (59 loc) · 1.58 KB
/
ecosystem.config.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"apps": [
{
"name": "server-worker",
"script": "artisan",
"args": ["serve", "--host=0.0.0.0", "--port=8000"],
"instances": "1",
"wait_ready": true,
"autorestart": true,
"interpreter" : "php",
"error_file": "storage/logs/pm2/serve/err.log",
"out_file": "storage/logs/pm2/serve/out.log",
"log_file": "storage/logs/pm2/serve/combined.log",
"time": true
},
{
"name": "schedule-worker",
"script": "artisan",
"args": ["schedule:work"],
"instances": "1",
"wait_ready": true,
"autorestart": true,
"interpreter" : "php",
"error_file": "storage/logs/pm2/schedule/err.log",
"out_file": "storage/logs/pm2/schedule/out.log",
"log_file": "storage/logs/pm2/schedule/combined.log",
"time": true
},
{
"name": "vite-worker",
"script": "npm",
"args": ["run", "dev"],
"instances": "1",
"wait_ready": true,
"autorestart": true,
"error_file": "storage/logs/pm2/npm/err.log",
"out_file": "storage/logs/pm2/npm/out.log",
"log_file": "storage/logs/pm2/npm/combined.log",
"time": true,
"exec_mode" : "fork",
"min_uptime": 0
},
{
"name": "queue-worker",
"script": "artisan",
"args": ["queue:work", "--sleep=15", "--max-jobs=1000", "--max-time=360"],
"instances": "2",
"wait_ready": true,
"autorestart": true,
"interpreter" : "php",
"error_file": "storage/logs/pm2/queue/err.log",
"out_file": "storage/logs/pm2/queue/out.log",
"log_file": "storage/logs/pm2/queue/combined.log",
"time": true,
"exec_mode" : "fork",
"min_uptime": 0
}
]
}