mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-18 03:23:42 -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) ->
|
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()
|
||||||
|
|
Loading…
Reference in a new issue