-
-
Notifications
You must be signed in to change notification settings - Fork 359
Expand file tree
/
Copy pathecosystem.config.js
More file actions
34 lines (34 loc) · 741 Bytes
/
ecosystem.config.js
File metadata and controls
34 lines (34 loc) · 741 Bytes
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
module.exports = {
apps: [
{
name: "client",
script: "node",
args: "server.js",
cwd: "apps/client",
instances: "1",
autorestart: true,
watch: false,
env: {
NODE_ENV: "production",
PORT: 3000, // Change this to your desired port
},
},
{
name: "api",
script: "node",
args: "dist/main.js",
cwd: "apps/api",
instances: "1",
autorestart: true,
watch: false,
restart_delay: 3000,
env: {
NODE_ENV: "production",
DB_USERNAME: process.env.DB_USERNAME,
DB_PASSWORD: process.env.DB_PASSWORD,
DB_HOST: process.env.DB_HOST,
secret: process.env.SECRET,
},
},
],
};