|
@@ -3,8 +3,6 @@ |
|
@@ -3,8 +3,6 @@ |
3
|
|
3
|
|
4
|
// Inspired by `bixby-server` by Jared Hanson
|
4
|
// Inspired by `bixby-server` by Jared Hanson
|
5
|
|
5
|
|
6
|
-var https = require('https')
|
|
|
7
|
-var http = require('http')
|
|
|
8
|
var cluster = require('cluster')
|
6
|
var cluster = require('cluster')
|
9
|
var os = require('os')
|
7
|
var os = require('os')
|
10
|
var path = require('path')
|
8
|
var path = require('path')
|
|
@@ -49,11 +47,6 @@ exports = module.exports = function(logger, settings) { |
|
@@ -49,11 +47,6 @@ exports = module.exports = function(logger, settings) { |
49
|
|
47
|
|
50
|
} else {
|
48
|
} else {
|
51
|
|
49
|
|
52
|
- if (settings.server.ssl.enabled)
|
|
|
53
|
- this.server = https.createServer(settings.server.ssl.options, this)
|
|
|
54
|
- else
|
|
|
55
|
- this.server = http.createServer(this)
|
|
|
56
|
-
|
|
|
57
|
this.server.listen(settings.server.port, settings.server.host, function() {
|
50
|
this.server.listen(settings.server.port, settings.server.host, function() {
|
58
|
var addr = this.address()
|
51
|
var addr = this.address()
|
59
|
logger.info('app listening on %s:%d', addr.address, addr.port)
|
52
|
logger.info('app listening on %s:%d', addr.address, addr.port)
|