-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
53 lines (53 loc) · 1.44 KB
/
Copy pathecosystem.config.js
File metadata and controls
53 lines (53 loc) · 1.44 KB
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
module.exports = {
apps: [
{
name: "foodflow-bot",
script: "main.py",
interpreter: "/home/user1/foodflow-bot_new/venv/bin/python",
cwd: "/home/user1/foodflow-bot_new",
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: "200M",
env: {
NODE_ENV: "production",
NO_PROXY: "*.azureedge.net,api.yookassa.ru"
},
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
merge_logs: true,
time: true,
},
{
name: "foodflow-api",
script: "venv/bin/python",
args: "-m uvicorn api.main:app --host 127.0.0.1 --port 8001",
cwd: "/home/user1/foodflow-bot_new",
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: "300M",
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
merge_logs: true,
time: true,
},
{
name: "foodflow-content-factory",
script: "venv/bin/python",
args: "-m content_factory.daemon",
cwd: "/home/user1/foodflow-bot_new",
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: "300M",
env: {
NODE_ENV: "production",
PYTHONUNBUFFERED: "1",
},
out_file: "/home/user1/.pm2/logs/foodflow-content-factory-out.log",
error_file: "/home/user1/.pm2/logs/foodflow-content-factory-err.log",
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
merge_logs: true,
time: true,
},
],
};