From 70c18ca2cc68925665fa6f33b157e3cfe223da6f Mon Sep 17 00:00:00 2001 From: Rob Date: Wed, 21 Oct 2015 16:45:41 -0700 Subject: [PATCH] Actually return the server and not the http object. --- server.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.coffee b/server.coffee index 4cb5e73c2..d192be825 100644 --- a/server.coffee +++ b/server.coffee @@ -11,9 +11,9 @@ serverSetup = require './server_setup' module.exports.startServer = (port, path, callback) -> app = createAndConfigureApp() port = port or app.get('port') - http.createServer(app).listen(port, callback) + server = http.createServer(app).listen(port, callback) log.info('Express SSL server listening on port ' + port) - http + server createAndConfigureApp = -> serverSetup.setupLogging()