 
                 'server': [
                     'Run dev server.',
-                    (opts) ->
+                    (opts) =>
+                        self = @
                         { service, renderer } = nobone()
 
                         run = ->

                                log '>> Server start at port: '.cyan + opts.port

                        if opts.rebuild
                            @_build(opts)
                            .then ->
                                @_build_doc opts
                            .then ->
                                run()
                        else


                'test': [
                    'Run test runner.',
                    (opts) =>
                        if opts.cli
                            @_build()
                            .then ->
                                spawn 'karma', ['start', 'karma.conf.js'].concat([
                                    '--single-run',
