Created
January 30, 2014 14:49
-
-
Save coderberry/8710094 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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