mirror of https://github.com/embarklabs/embark.git
formatting -- webserver/server.js
This commit is contained in:
parent
52ed0e2856
commit
9cd96ddd29
|
@ -19,8 +19,8 @@ class Server {
|
||||||
start(callback) {
|
start(callback) {
|
||||||
if (this.server && this.server.listening) {
|
if (this.server && this.server.listening) {
|
||||||
let message = __("a webserver is already running at") + " " +
|
let message = __("a webserver is already running at") + " " +
|
||||||
("http://" + canonicalHost(this.hostname) +
|
("http://" + canonicalHost(this.hostname) +
|
||||||
":" + this.port).bold.underline.green;
|
":" + this.port).bold.underline.green;
|
||||||
return callback(null, message);
|
return callback(null, message);
|
||||||
}
|
}
|
||||||
let serve = serveStatic(this.buildDir, {'index': ['index.html', 'index.htm']});
|
let serve = serveStatic(this.buildDir, {'index': ['index.html', 'index.htm']});
|
||||||
|
@ -74,7 +74,6 @@ class Server {
|
||||||
callback(null, __("Webserver stopped"));
|
callback(null, __("Webserver stopped"));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = Server;
|
module.exports = Server;
|
||||||
|
|
Loading…
Reference in New Issue