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) {
|
||||
if (this.server && this.server.listening) {
|
||||
let message = __("a webserver is already running at") + " " +
|
||||
("http://" + canonicalHost(this.hostname) +
|
||||
":" + this.port).bold.underline.green;
|
||||
("http://" + canonicalHost(this.hostname) +
|
||||
":" + this.port).bold.underline.green;
|
||||
return callback(null, message);
|
||||
}
|
||||
let serve = serveStatic(this.buildDir, {'index': ['index.html', 'index.htm']});
|
||||
|
@ -74,7 +74,6 @@ class Server {
|
|||
callback(null, __("Webserver stopped"));
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = Server;
|
||||
|
|
Loading…
Reference in New Issue