             next()
 
     # Static files handler
-    @use STATIC_URL, express.static staticDir
+    @use STATIC_PATH, express.static staticDir
     @use config.url_prefix + 'embed', redirectHandler
     # Redirect all trailing slash urls to slashless urls
     @use slashes(false)

git.short (commitId) ->
    config.git_commit_id = commitId

STATIC_URL = config.static_path
ALLOWED_URLS = [
    /^\/$/
    /^\/unit\/\d+$/, # with id

            sendResponse()
    request.on 'error', (error) =>
        console.error 'Error making API request', error

server.configure ->
    staticDir = __dirname + '/../static'
