diff --git a/app.js b/app.js index ee2e176..f8611f3 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,6 @@ const express = require('express'); const path = require('path'); -const PORT = 3000; +const port = process.env.PORT || 3000; // process.env.PORT is for Azure. const app = express(); @@ -16,7 +16,7 @@ app.get('/', (req, res) => { // Iniciar el servidor -app.listen(PORT, () => { - console.log(`Servidor corriendo en http://localhost:${PORT}`); +app.listen(port, () => { + console.log(`Servidor corriendo en http://localhost:${port}`); }); \ No newline at end of file