Skip to content

Commit

Permalink
added server boot commands to Cakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
robflaherty committed Aug 23, 2011
1 parent df9c177 commit 8381ca6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Cakefile
Expand Up @@ -11,3 +11,13 @@ task 'assets:watch', 'Watch source files and build JS & CSS', (options) ->
runCommand 'coffee', '-wc', 'client/test/unit/'

runCommand 'coffee', '-wc', '-o', 'server/build/', 'server/src/'

task 'servers:boot', 'Boot servers', (options) ->
runCommand = (name, args...) ->
proc = spawn name, args
proc.stderr.on 'data', (buffer) -> console.log buffer.toString()
proc.stdout.on 'data', (buffer) -> console.log buffer.toString()
proc.on 'exit', (status) -> process.exit(1) if status isnt 0

runCommand 'node', 'server/build/server.js',
runCommand 'node', 'server/dashboard/app.js'

0 comments on commit 8381ca6

Please sign in to comment.