Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 12 lines (8 sloc) 0.369 kb
299bc92 @skalnik Add README and Cakefile which spawns server
authored
1 {spawn, exec} = require 'child_process'
2 print = (data) -> console.log data.toString()
3
4 option '-p', '--port [PORT]', 'run server with given port'
5
6 task 'server', 'Start application server', (options) ->
7 port = options.port or 3000
8
9 server = spawn 'coffee', ['server.coffee'], { env: {PORT: port } }
10 server.stdout.on 'data', print
11 server.stderr.on 'data', print
Something went wrong with that request. Please try again.