-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathecosystem.config.cjs
More file actions
31 lines (31 loc) · 937 Bytes
/
ecosystem.config.cjs
File metadata and controls
31 lines (31 loc) · 937 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
module.exports = {
apps: [
{
name: "studio.pphat.top:3104",
port: 3104,
exec_mode: "cluster",
instances: "max",
script: "./.output/server/index.mjs",
env: {
NODE_ENV: "production",
PORT: 3104,
},
// env_development: {
// NODE_ENV: 'development',
// PORT: 3104,
// },
// Logs
error_file: "./logs/error.log",
out_file: "./logs/output.log",
log_date_format: "YYYY-MM-DD HH:mm:ss",
merge_logs: true,
// Restart policy
max_restarts: 10,
min_uptime: "10s",
max_memory_restart: "500M",
// Watch (disabled for production)
watch: false,
ignore_watch: ["node_modules", "logs", ".nuxt", ".output"],
},
],
};