const express = require('express');
const app = express();
const port = 3000;

require('./middleware.js')(app, express);

app.listen(port, function() {
  console.log('Now listening on port', port);
});

module.exports = app;

@@ -64,16 +64,36 @@
 t port =
+ process.env.PORT %7C%7C
  3000;%0A%0A

Fix server port for Heroku deployment