Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created January 30, 2014 14:49
Show Gist options
  • Save coderberry/8710094 to your computer and use it in GitHub Desktop.
Save coderberry/8710094 to your computer and use it in GitHub Desktop.
cannedServer = (fakeServerDir) ->
canPort = 3000
can = canned(fakeServerDir, { cors: true, logger: process.stdout })
http.createServer(can).listen(canPort)
console.log 'Canned listening at port ' + canPort
task 'server', 'start the brunch server in development', (options) ->
# ...
cannedServer 'cans'
spawnBrunch flags, process.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment