configure bind address
This commit is contained in:
parent
227b471269
commit
ed7e586bb2
5
bin/www
5
bin/www
@ -3,7 +3,8 @@ var debug = require('debug')('bouquins');
|
|||||||
var app = require('../bouquins');
|
var app = require('../bouquins');
|
||||||
|
|
||||||
app.set('port', process.env.PORT || 3000);
|
app.set('port', process.env.PORT || 3000);
|
||||||
|
app.set('hostname', process.env.HOSTNAME || 'localhost');
|
||||||
|
|
||||||
var server = app.listen(app.get('port'), function() {
|
var server = app.listen(app.get('port'), app.get('hostname'), function() {
|
||||||
debug('Express server listening on port ' + server.address().port);
|
debug('Express server listening on ' + server.address().hostname + ':' + server.address().port);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user