bin/www
#!/usr/bin/env node
var debug = require('debug')(require('../package.json').name)
try {
require('newrelic')
debug('loaded newrelic')
} catch (e) {
debug(e)
}
var app = require('../app')
try {
var airbrake = require('airbrake').createClient(process.env.AIRBRAKE_KEY)
app.use(airbrake.expressHandler())
debug('loaded airbrake')
} catch (e) {
debug(e)
}
app.set('port', (process.env.VCAP_APP_PORT || process.env.PORT || 3000))
var server = app.listen(app.get('port'), function () {
debug('Express server listening on port ' + server.address().port)
})