MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / start

Method start

lib/tasks/server/express-server.js:140–155  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

138 }
139
140 start(options) {
141 options.project = this.project;
142 options.watcher = this.watcher;
143 options.serverWatcher = this.serverWatcher;
144 options.ui = this.ui;
145
146 this.startOptions = options;
147
148 if (this.serverWatcher) {
149 this.serverWatcher.on('change', this.serverWatcherDidChange.bind(this));
150 this.serverWatcher.on('add', this.serverWatcherDidChange.bind(this));
151 this.serverWatcher.on('delete', this.serverWatcherDidChange.bind(this));
152 }
153
154 return this.startHttpServer();
155 }
156
157 serverWatcherDidChange() {
158 this.scheduleServerRestart();

Callers 1

runMethod · 0.45

Calls 2

startHttpServerMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected