can pick port from ENV

This commit is contained in:
Pablo Martin 2025-06-06 14:49:29 +02:00
parent ae8f9ec6a1
commit 3eb9b42a94

View file

@ -2,7 +2,7 @@ const buildApp = require("./buildApp");
const app = buildApp();
const PORT = 3003;
const PORT = process.env.PORT || 3003;
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});