-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathecosystem.config.js
More file actions
30 lines (30 loc) · 878 Bytes
/
Copy pathecosystem.config.js
File metadata and controls
30 lines (30 loc) · 878 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
module.exports = {
apps: [
{
name: "Quickpayus API",
script: "index.js",
ignore_watch: [
// List files/directories to ignore for watching
"node_modules/",
".git/",
"public/", // You can add other directories as needed
],
time: true,
env_production: {
// Optional: Environment variables for production
NODE_ENV: "production",
instances: 4, // number of workers you want to run
exec_mode: "cluster", // to turn on cluster mode; defaults to 'fork' mode
},
env_development: {
watch: true, // Enable watcher mode
// Optional: Environment variables for development
NODE_ENV: "development",
// PORT: 3001,
// JWT_SECRET: "secretOrPrivateKey",
// JWT_EXPIRE: "1hhhh",
// COOKIE_EXPIRE: 1
},
},
],
};