 CurrentUser = require '../models/current_user'
 
 module.exports = (app) ->
+  console.log "Setting up... NODE_ENV=#{NODE_ENV}"
+
   Backbone.sync = require 'backbone-super-sync'
   Backbone.sync.cacheClient = cache.client
+
+  console.log 'Mounting middleware...'
 
   app.use sharify
 

  # TODO: Kill this/replace with something that's not a Node module
  artsyError.handlers app,
    template: path.resolve(__dirname, '../components/layout/templates/error.jade')

    .use isInverted
    .use viewMode

  console.log 'Mounting apps...'

  app
    # Normal routing: In order
    .use require '../apps/feed'
