mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Silly brunch, guess we'll just call nodemon
This commit is contained in:
parent
94d29d2e8a
commit
625babd4a0
2 changed files with 5 additions and 7 deletions
|
@ -44,8 +44,7 @@ exports.config =
|
|||
usePolling: true
|
||||
|
||||
server:
|
||||
port: 3000
|
||||
path: 'server.coffee'
|
||||
command: 'nodemon . --ext ".coffee|.js" --watch server --watch server_config.js --watch server_setup.coffee --watch app' + sysPath.sep + "schemas"
|
||||
|
||||
files:
|
||||
javascripts:
|
||||
|
|
|
@ -8,12 +8,11 @@ http = require 'http'
|
|||
log = require 'winston'
|
||||
serverSetup = require './server_setup'
|
||||
|
||||
module.exports.startServer = (port, path, callback) ->
|
||||
module.exports.startServer = ->
|
||||
app = createAndConfigureApp()
|
||||
port = port or app.get('port')
|
||||
server = http.createServer(app).listen(port, callback)
|
||||
log.info('Express SSL server listening on port ' + port)
|
||||
server
|
||||
http.createServer(app).listen(app.get('port'))
|
||||
log.info('Express SSL server listening on port ' + app.get('port'))
|
||||
app
|
||||
|
||||
createAndConfigureApp = ->
|
||||
serverSetup.setupLogging()
|
||||
|
|
Loading…
Reference in a new issue