August 23, 2010
Restarting server automatic with CoffeeScript (running a Node server)
Hi, this script was originally wrote in pure Javascript for Node, I just translated it to CoffeeScript in order to it work with coffeescript directly
Then just use:
coffee run_dev_server.coffee
note: while this script expects you have a file named server.coffee in same folder, you can easily change the script to fit your needs.
Geek guy that really like to be on the edge of web technologies, like music and guitar (but play really bad), also like to see all kind of non-sense things in internet.
Also, you can avoid the 'self' variable by using => in place of ->