Spaces:
Paused
Paused
Download server.js from Huzaifa1313/prof1: direct link, hf CLI and curl.
- Browser
- Download file 465 Bytes
-
https://huggingface.co/spaces/Huzaifa1313/prof1/resolve/main/server.js
- Command line
-
hf download hf://spaces/Huzaifa1313/prof1/server.js
-
curl -L -o server.js https://huggingface.co/spaces/Huzaifa1313/prof1/resolve/main/server.js
465 Bytes
| require('dotenv').config(); | |
| const app = require('./src/app'); | |
| const HOST = process.env.HOST || '0.0.0.0'; | |
| const PORT = Number(process.env.PORT || process.env.HF_PORT || 7860); | |
| process.env.HOST = HOST; | |
| process.env.PORT = String(PORT); | |
| app.locals.host = HOST; | |
| app.locals.port = PORT; | |
| app.listen(PORT, HOST, () => { | |
| console.log(`Service Connect backend running at http://${HOST}:${PORT}`); | |
| console.log(`Health endpoint: http://${HOST}:${PORT}/health`); | |
| }); | |