Last Updated: February 25, 2016
·
456
· wookets

Using Coffeescript with Heroku Scheduler

  1. Put the below code snippit in {app}/scripts directory. e.g. scripts/example.coffee
  2. Deploy on to Heroku
  3. Add the Heroku Scheduler add-on
  4. Add Job with task $ coffee scripts/example.coffee
# {app_root}/scripts/example.coffee
console.log 'hello world'