CognxSafeTrack
fix: update production port to 7860 for Hugging Face compatibility and add audit report
10211c3 Download ecosystem.config.js from safetrack/edtech: direct link, hf CLI and curl.
- Browser
- Download file 593 Bytes
-
https://huggingface.co/spaces/safetrack/edtech/resolve/main/ecosystem.config.js
- Command line
-
hf download hf://spaces/safetrack/edtech/ecosystem.config.js
-
curl -L -o ecosystem.config.js https://huggingface.co/spaces/safetrack/edtech/resolve/main/ecosystem.config.js
593 Bytes
| const services = process.env.SERVICES ? process.env.SERVICES.split(',') : ['api', 'worker']; | |
| const apps = [ | |
| { | |
| name: 'api', | |
| script: 'apps/api/dist/index.js', | |
| interpreter: 'node', | |
| instances: 1, | |
| exec_mode: 'fork', | |
| env: { | |
| NODE_ENV: 'production', | |
| PORT: 7860 | |
| } | |
| }, | |
| { | |
| name: 'worker', | |
| script: 'apps/whatsapp-worker/dist/index.js', | |
| interpreter: 'node', | |
| instances: 1, | |
| exec_mode: 'fork', | |
| env: { | |
| NODE_ENV: 'production', | |
| PORT: 8082 | |
| } | |
| } | |
| ]; | |
| module.exports = { | |
| apps: apps.filter(app => services.includes(app.name)) | |
| }; | |