Add Heroku-specific stuff

This commit is contained in:
Robbie Antenesse 2019-01-04 17:41:13 -07:00
parent 4ba2b02815
commit a166873e66
2 changed files with 3 additions and 2 deletions

1
Procfile Normal file
View File

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

View File

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