Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (35 sloc) 1.33 KB

Getting Started

Clone this repo:

git clone

Now cd into the directory:

cd heroku_sinatra_example

Install required gems:

sudo bundle install

Now create a heroku app for it (this assumes you're already logged into heroku):

heroku create --stack cedar

Ok, now we're ready to run on Heroku, but first we need to add the Add-ons:

heroku addons:add iron_worker:starter
heroku addons:add iron_mq:rust

Grab your IronWorker project id and token from:

heroku config

And put them in a file in this directory called iron.json in this format:


Upload the worker:

iron_worker upload workers/TweetWorker

Then just push to heroku!

git push heroku master

Live Demo

Here's a live running example of this app:


To run in development, you need a token and project_id from your account. Login at to get it.

Then start this sinatra app using this command, replacing my_token and my_project_id with your credentials:

IRON_WORKER_TOKEN=my_token IRON_WORKER_PROJECT_ID=my_project_id rackup -p 3000
Jump to Line
Something went wrong with that request. Please try again.