 serveStatic = require 'serve-static'
 methodOverride = require 'method-override'
 errorHandler = require 'errorhandler'
-# watcher = require 'chokidar-socket-emitter'
+watcher = require 'chokidar-socket-emitter'
 
 # The port assignments.
 PORT = 3000


# The grunt build tasks place all compiled and copied files within
# the public directory.
root = path.join(__dirname, '..', 'public')

# The REST request handler.
rest = require './rest'

    port = server.get 'port'
    # Make the server.
    srv = http.createServer(server)
    # The watcher hot reloads modules.
    watcher({app: srv})
    # Start the server.
    srv.listen port, ->
      env = server.settings.env
