mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-17 19:12:33 -05:00
Actually return the server and not the http object.
This commit is contained in:
parent
2275c78b2d
commit
70c18ca2cc
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue