       app.locals.helpers = helpers
 
 
-    #=========================================================================================
+    #=====================================================================================
     # Global middleware
-    #=========================================================================================
+    #=====================================================================================
     normalizeUrl = (req, res, next)->
       try
         decodeURIComponent(req.originalUrl)

else


  #=========================================================================================
  # Instantiate server
  #=========================================================================================
  domain = require('domain').create()
  domain.on 'error', (err)->
    log(err.stack || err, 'red')

        app.use(require('compression')())


    #=====================================================================================
    # Start listening
    #=====================================================================================
    app.enable('trust proxy') # usually sitting behind nginx
    app.disable('x-powered-by')

