mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 17:44:52 -04:00
Run linter manually
This commit is contained in:
parent
ef7720ff06
commit
5517a913d4
4 changed files with 12 additions and 12 deletions
|
@ -25,13 +25,13 @@ var Server = function(config, callback) {
|
|||
var options = {
|
||||
key: fs.readFileSync(config.httpsPrivateKey),
|
||||
cert: fs.readFileSync(config.httpsCertificate)
|
||||
}
|
||||
};
|
||||
server = require("https").Server(options, app);
|
||||
}else{
|
||||
server = require("http").Server(app);
|
||||
}
|
||||
var io = require("socket.io")(server);
|
||||
|
||||
|
||||
console.log("Starting server on port " + port + " ... ");
|
||||
|
||||
server.listen(port, config.address ? config.address : "localhost");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue