Schedule Rake Tasks on Heroku

Heroku offers a very simple and free way to schedule any tasks. This is basically an interface to cron.

To do so you first need to install the scheduler addon on Heroku:

1
heroku addons:add scheduler:standard

Once this is done, you just need to go to your dashboard, click the app you just add the addon and click on “Heroku Scheduler Standard”:

Heroku App Dashboard

Then, you can define with task to execute (rake earthquake:import in my case), and the frequency:

Heroku Sheduler Addon

Note that the minimum frequency to execute a command in 10 minutes.

Source: https://devcenter.heroku.com/articles/scheduler

Get Your SSH Key Fingerprint

Always helpful especially when GitHub has been attacked and asks for the verification of all you SSH keys…

1
2
$ ssh-keygen -lf ~/.ssh/ssh_host_rsa_key.pub
2048 d6:59:bc:0b:18:ba:17:15:41:fc:d0:2a:60:f4:7e:e8 ~/.ssh/ssh_host_rsa_key.pub