Spaces:
Sleeping

File size: 341 Bytes
4e83772
 
 
 
 
 
03d6d9d
4e83772
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
	apps: [{
		name: "my-express-server",
		script: "./dist/server.js",


		instances: 2,
		exec_mode: "cluster",

		max_memory_restart: "4G",

		env: {
			NODE_ENV: "production",
			PORT: 7860 // Ensure this matches HF's requirements
		},

		autorestart: true,
		watch: false,
		max_restarts: 10,
		restart_delay: 4000
	}]
}