fix ip listen
This commit is contained in:
parent
76c3c7ecfb
commit
fc2c1cf927
@ -6,6 +6,7 @@ const app = express();
|
||||
const cors = require('cors');
|
||||
require('dotenv').config();
|
||||
const PORT = process.env.WEB_PORT || 3350;
|
||||
const IP = process.env.IP || '0.0.0.0';
|
||||
|
||||
app.use(cors());
|
||||
|
||||
@ -90,6 +91,6 @@ setupSwagger(app);
|
||||
// });
|
||||
|
||||
// Start server
|
||||
app.listen(PORT, () => {
|
||||
app.listen(PORT, IP, () => {
|
||||
console.log(`Server running on port ${PORT}`);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user