var express = require('express')
var requireAll = require('./lib/require-all')

controllers = requireAll({
  dirname: __dirname + '/app/controllers',
  filter: /(.+)\.js(on)?$/
})

var app = express()

require('./config/initializers/middleware.js').configure(app)
require('./config/routes').configure(app, controllers)

port = process.env.PORT || 4000
app.listen(port)
console.log('Listening on port ', port)


var express = require('express')
var requireAll = require('./lib/require-all')

controllers = requireAll({
  dirname: __dirname + '/app/controllers',
  filter: /(.+)\.js(on)?$/
})

var app = express()

require('./config/initializers/middleware.js').configure(app)
require('./config/routes').configure(app, controllers)

address = process.env.ADDRESS || '127.0.0.1'
port = process.env.PORT || 4000
app.listen(port, address)
console.log('Listening on port ', port)
console.log('Listening on IP address ', address)


Make host address configurable in ENV
[FEATURE] Make host address configurable in ENV