       @_server.use(express.basicAuth(@config.basic_auth.username, @config.basic_auth.password))
 
     # roots-cms client assets
-    @_server.use(express.static(path.join(__dirname, '..', 'client', 'public')))
+    @_server.use(express.static(path.join(client_path, 'public')))
 
     # roots project assets
     @_server.use(express.static(path.join(@cms.root, 'assets')))

path    = require('path')
api     = require('../api')
W       = require 'when'

Roots   = require 'roots'

class Server


  ### private ###

  compile_client = ->
    new_client(env: 'production').compile()

  configure_server = ->
    if @config.env == 'development'
