Permalink
Browse files

Added configuration for Heroku

  • Loading branch information...
marcomontalbano committed Oct 2, 2018
1 parent ae7a4ec commit 684a7cd925ecd2f49a11571eae0e3de46593440c
Showing with 4 additions and 2 deletions.
  1. +1 −0 Procfile
  2. +3 −2 server.js
View
@@ -0,0 +1 @@
web: npm start
View
@@ -1,5 +1,6 @@
var express = require('express');
var app = express();
var PORT = process.env.PORT || 5000;
var low = require('lowdb');
var FileSync = require('lowdb/adapters/FileSync');
@@ -49,6 +50,6 @@ app.route('/articles/:id(\\d+)')
)
})
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
app.listen(PORT, function () {
console.log('Example app listening on port ' + PORT + '!');
});

0 comments on commit 684a7cd

Please sign in to comment.