Skip to content

Commit

Permalink
Revert "Specify HOST for express server to listen on openhab#168" (op…
Browse files Browse the repository at this point in the history
…enhab#187)

* Revert "Fix paging parameter (page/skip/limit) handling. (openhab#174)"

This reverts commit 34a09b6.

* Revert "Specify HOST for express server to listen on openhab#168 (openhab#172)"

This reverts commit 8e95065.
  • Loading branch information
digitaldan authored Apr 21, 2018
1 parent 34a09b6 commit fe52a5a
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 fe52a5a

Please sign in to comment.