Renaming https to generic node
This commit is contained in:
parent
cc3dac9442
commit
8f746f1d27
|
@ -38,9 +38,9 @@ namespace("Cylon", function() {
|
|||
key: fs.readFileSync(opts.key || __dirname + "/ssl/server.key")
|
||||
}
|
||||
|
||||
this.server.https = https.createServer(options, this.server);
|
||||
this.server.node = https.createServer(options, this.server);
|
||||
} else {
|
||||
this.server.https = this.server;
|
||||
this.server.node = this.server;
|
||||
}
|
||||
|
||||
this.server.set('title', 'Cylon API Server');
|
||||
|
@ -62,7 +62,7 @@ namespace("Cylon", function() {
|
|||
|
||||
ApiServer.prototype.listen = function() {
|
||||
var self = this;
|
||||
this.server.https.listen(this.port, this.host, null, function() {
|
||||
this.server.node.listen(this.port, this.host, null, function() {
|
||||
var title = self.server.get('title');
|
||||
Logger.info(title + " is now online.");
|
||||
Logger.info("Listening at https://" + self.host + ":" + self.port);
|
||||
|
|
Loading…
Reference in New Issue