Skip to content

Commit

Permalink
Add port for Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
nelmuniz committed Apr 8, 2021
1 parent db1166b commit 10ffd96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const express = require('express');
const fetch = require('node-fetch');
const port = process.env.PORT || 8080;

let app = express();

Expand Down Expand Up @@ -87,6 +88,6 @@ app.use('*', async (req, res) => {
});

// Start server
app.listen(8080);
app.listen(port);
console.log('Spain COVID-19 vaccination');
console.log('Server started: http://localhost:8080');
console.log(`Server started on port: ${port}`);

0 comments on commit 10ffd96

Please sign in to comment.