Browse Source

Add Heroku-specific stuff

activitypub
Robbie Antenesse 3 years ago
parent
commit
a166873e66
  1. 1
      Procfile
  2. 4
      server.js

1
Procfile

@ -0,0 +1 @@
web: npm start

4
server.js

@ -418,8 +418,8 @@ Server.prototype.generateHistoryPage = function (req) {
}
Server.prototype.start = function () {
this.http.listen(settings.port, () => {
console.log('Started server on port ' + settings.port);
this.http.listen((process.env.PORT || settings.port), () => {
console.log('Started server on port ' + (process.env.PORT || settings.port));
});
}

Loading…
Cancel
Save