 
     # roots-cms marionette SPA
     @_server.get "*", (req, res) ->
-      res.sendfile(path.join(__dirname, '..', 'client', 'public', 'index.html'))
+      res.sendfile(path.join(client_path, 'public', 'index.html'))
 
 module.exports = Server

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

Roots   = require 'roots'

class Server


      @_server.use(express.basicAuth(@config.basic_auth.username, @config.basic_auth.password))

    # roots-cms client assets
    @_server.use(express.static(path.join(client_path, 'public')))

    # roots project assets
    @_server.use(express.static(path.join(@cms.root, 'assets')))
