Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update README.md

  • Loading branch information...
commit c316be2d58a7950407abc0a164c541ea5dd72ee1 1 parent 2733890
@treeder treeder authored
Showing with 24 additions and 7 deletions.
  1. +24 −7 README.md
View
31 README.md
@@ -1,17 +1,22 @@
Getting Started
===============
-First you need a token and project_id from your Iron.io account. Login at http://www.iron.io
-to get it.
+Clone this repo:
-To run in development, run:
+ git clone git@github.com:iron-io/heroku_sinatra_example.git
+
+Now cd into the directory:
- IRON_WORKER_TOKEN=my_token IRON_WORKER_PROJECT_ID=my_project_id rackup -p 3000 config.ru
+ cd heroku_sinatra_example
-To run on heroku:
+Now create a heroku app for it (this assumes you're already [logged into heroku](http://devcenter.heroku.com/articles/quickstart)):
- heroku addons:add iron_worker
- heroku addons:add iron_mq
+ heroku create --stack cedar
+
+Ok, now we're ready to run on Heroku, but first we need to add the Iron.io Add-ons:
+
+ heroku addons:add iron_worker:starter
+ heroku addons:add iron_mq:rust
Then just push to heroku!
@@ -21,3 +26,15 @@ Live Demo
=========
Here's a live running example of this app: http://evening-planet-3202.herokuapp.com/
+
+Development
+===========
+
+To run in development, you need a token and project_id from your Iron.io account. Login at http://www.iron.io
+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 config.ru
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.