-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
50 lines (50 loc) · 1.29 KB
/
ecosystem.config.js
File metadata and controls
50 lines (50 loc) · 1.29 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
module.exports = {
apps: [
{
name: 'svara-pro-server',
script: './server/dist/src/main.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
PORT: 3000
},
error_file: './logs/server-err.log',
out_file: './logs/server-out.log',
log_file: './logs/server-combined.log',
time: true
},
{
name: 'svara-pro-bot',
script: './bot/dist/index.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
BOT_TOKEN: process.env.BOT_TOKEN,
APP_URL: process.env.APP_URL
},
error_file: './logs/bot-err.log',
out_file: './logs/bot-out.log',
log_file: './logs/bot-combined.log',
time: true
},
{
name: 'svara-pro-service-bot',
script: './service-bot/dist/index.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
BOT_TOKEN: process.env.SERVICE_BOT_TOKEN,
ADMIN_IDS: process.env.ADMIN_IDS,
API_BASE_URL: process.env.API_BASE_URL,
API_SECRET: process.env.API_SECRET
},
error_file: './logs/service-bot-err.log',
out_file: './logs/service-bot-out.log',
log_file: './logs/service-bot-combined.log',
time: true
}
]
};