Skip to content

Commit

Permalink
Add host address configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeBiellik committed Jun 22, 2020
1 parent 2e4f714 commit 96499fd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions server.js
@@ -1,7 +1,4 @@
const app = require('./app');
const config = require('config');
const util = require('util');

module.exports = app.listen(process.env.PORT || config.port || 3000, function() {
util.log('Server started: http://localhost:%s/', this.address().port);
});
module.exports = app.listen(process.env.PORT || config.port, process.env.HOST || config.host);

0 comments on commit 96499fd

Please sign in to comment.