Carpool / server.js
Huzaifa1435's picture
Fix server.js: add HOST 0.0.0.0 for HF deployment
153e730
Raw History Blame Contribute Delete
312 Bytes
require('dotenv').config();
const app = require('./src/app');
const PORT = Number(process.env.PORT || 7860);
const HOST = '0.0.0.0';
app.listen(PORT, HOST, () => {
console.log(`🚀 CarPool backend running at http://${HOST}:${PORT}`);
console.log(`🔗 Health endpoint: http://${HOST}:${PORT}/health`);
});