Actually return the server and not the http object.

This commit is contained in:
Rob 2015-10-21 16:45:41 -07:00
parent 2275c78b2d
commit 70c18ca2cc

View file

@ -11,9 +11,9 @@ serverSetup = require './server_setup'
module.exports.startServer = (port, path, callback) -> module.exports.startServer = (port, path, callback) ->
app = createAndConfigureApp() app = createAndConfigureApp()
port = port or app.get('port') 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) log.info('Express SSL server listening on port ' + port)
http server
createAndConfigureApp = -> createAndConfigureApp = ->
serverSetup.setupLogging() serverSetup.setupLogging()