Skip to content

Commit

Permalink
Revert "Specify HOST for express server to listen on #168 (#172)"
Browse files Browse the repository at this point in the history
This reverts commit 8e95065.
  • Loading branch information
digitaldan authored Apr 21, 2018
1 parent 85a8341 commit 4657fe8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ if (app.get('env') === 'development') {

// App configuration for all environments
app.set('port', process.env.PORT || 3000);
app.set('host', process.env.HOST || '0.0.0.0');
app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
app.use(favicon(__dirname + '/public/img/favicon.ico'));
Expand Down Expand Up @@ -341,11 +340,8 @@ app.use(function (req, res, next) {
});
app.use(serveStatic(path.join(__dirname, 'public')));

var server = app.listen({
host:app.get('host'),
port:app.get('port')
}, function () {
logger.info('openHAB-cloud: express server listening on ' +app.get('host') + ':' + app.get('port'));
var server = app.listen(app.get('port'), function () {
logger.info('openHAB-cloud: express server listening on port ' + app.get('port'));
});

var io = require('socket.io').listen(server, {
Expand Down

0 comments on commit 4657fe8

Please sign in to comment.