Skip to content

Commit

Permalink
app.js modified with azure port
Browse files Browse the repository at this point in the history
  • Loading branch information
logancortes committed Dec 18, 2024
1 parent 7a9d46c commit 570c1a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
@@ -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();

Expand All @@ -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}`);
});

0 comments on commit 570c1a7

Please # to comment.