-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathecosystem.config.js
More file actions
48 lines (47 loc) · 1.23 KB
/
Copy pathecosystem.config.js
File metadata and controls
48 lines (47 loc) · 1.23 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
const isWindows = process.platform === "win32";
module.exports = {
apps: [
{
name: "backend",
script: isWindows ? "cmd" : "sh",
args: isWindows
? ["/c", "bun", "src/index.ts", "--env-file=../../.env"]
: ["-c", "bun src/index.ts --env-file=../../.env"],
exec_mode: "fork",
cwd: "apps/backend",
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
{
name: "frontend",
script: isWindows ? "cmd" : "sh",
args: isWindows
? ["/c", "bun", "dist/index.js"]
: ["-c", "bun dist/index.js"],
exec_mode: "fork",
cwd: "apps/frontend",
env: {
PORT: 5173,
},
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
{
name: "notifier",
script: isWindows ? "cmd" : "sh",
args: isWindows
? ["/c", "bun", "src/index.ts", "--env-file=../../.env"]
: ["-c", "bun src/index.ts --env-file=../../.env"],
exec_mode: "fork",
cwd: "apps/notifier",
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
{
name: "tunnel",
script: "scripts/tunnel.ts",
interpreter: "bun",
args: ["start"],
exec_mode: "fork",
cwd: ".",
log_date_format: "YYYY-MM-DD HH:mm:ss Z",
},
],
};