bouquins/bin/www

11 lines
373 B
Plaintext
Raw Normal View History

2014-06-18 20:51:15 +00:00
#!/usr/bin/node
2014-05-22 19:08:41 +00:00
var debug = require('debug')('bouquins');
var app = require('../bouquins');
app.set('port', process.env.PORT || 3000);
2014-06-24 18:25:21 +00:00
app.set('hostname', process.env.HOSTNAME || 'localhost');
2014-05-22 19:08:41 +00:00
2014-06-24 18:25:21 +00:00
var server = app.listen(app.get('port'), app.get('hostname'), function() {
debug('Express server listening on ' + server.address().hostname + ':' + server.address().port);
2014-05-22 19:08:41 +00:00
});