Skip to content

Commit e977bbd

Browse files
committed
now binding to host 0.0.0.0
1 parent ce921ba commit e977bbd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ if(config.env === 'production'){
4141
}
4242

4343

44-
app.listen(config.port, function () {
45-
log.info('listening on port '+config.port+'!');
44+
var server = app.listen(config.port,'0.0.0.0', function () {
45+
var host = server.address().address;
46+
var port = server.address().port;
47+
log.info('listening on host '+host+', port '+config.port+'!');
4648
});
4749

4850
}

0 commit comments

Comments
 (0)