From ed7e586bb2c98e380143dfe1f2d9e77679fd4458 Mon Sep 17 00:00:00 2001 From: Meutel Date: Tue, 24 Jun 2014 20:25:21 +0200 Subject: [PATCH] configure bind address --- bin/www | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/www b/bin/www index 2102058..8d4183a 100755 --- a/bin/www +++ b/bin/www @@ -3,7 +3,8 @@ var debug = require('debug')('bouquins'); var app = require('../bouquins'); app.set('port', process.env.PORT || 3000); +app.set('hostname', process.env.HOSTNAME || 'localhost'); -var server = app.listen(app.get('port'), function() { - debug('Express server listening on port ' + server.address().port); +var server = app.listen(app.get('port'), app.get('hostname'), function() { + debug('Express server listening on ' + server.address().hostname + ':' + server.address().port); });