   # Cache for compiled script-tags
   compiledTags = null
 
-  # List of functions that are ran when the app starts listening a port.
-  runOnListen = []
 
   # Array of client-side script names
   try

            


  # Run when app starts listening a port
  app.on 'listening', ->
    fn() for fn in runOnListen


  return app


      # All js code will be shared from here in production
      app.get "/managedjs/production.js", (req, res) ->
        # Cache for an year. Server restarts will reset the cache.
        res.setHeader 'Cache-Control', 'public, max-age=31556926'
        res.send productionClientCode, 'Content-Type': 'application/javascript'

