Download ecosystem.config.cjs from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/ecosystem.config.cjs
- Command line
-
hf download hf://spaces/lynfera/api/ecosystem.config.cjs
-
curl -L -o ecosystem.config.cjs https://huggingface.co/spaces/lynfera/api/resolve/main/ecosystem.config.cjs
341 Bytes
| 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 | |
| }] | |
| } |