Using Forever with Coffeescript

I needed a flexible server daemon for nodejs and I tried out nodejitsu’s Forever. After reading the readme.md I was think wow this thing will rock. However, my first attempt to use it I realized it was trying to use the node interpreter on my coffeescript. I googled and didn’t find any helpful links. The solution was easy enough once I read all the command-options. The -c option parameter lets you specify a command string to run. For a file named ‘myApp.coffee’ one would use the following

forever -c coffee myApp.coffee

Posted on Tumblr - Mon May 07th 2012, 9:38 AM

blog comments powered by Disqus