       @_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')))

  ### private ###

  compile_client = ->
    client = new Roots(path.join(__dirname, '..', 'client'))
    client.compile()

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

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

client_path = path.join(__dirname, '..', '..', '..', 'roots-cms-client')
new_client  = require(path.join(client_path, 'lib'))

class Server

