2016-05-05 06:24:00 +00:00
|
|
|
#!/usr/bin/env 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
|
|
|
});
|