We had the pleasure of meeting Morten Bagji from Heroku recently who told us all about their platform. We love how beautifully simple it is ...
"It's like a rails deployment vending machine"
Getting a brand new Rails application deployed on Heroku with Exceptional is really simple. The steps below should take you no more than 5 minutes in total.
Before you start you will need:
$ rails blog
$ ./script/generate scaffold Post title:string body:text
$ rake db:migrate
$ ./script/server
Open up http://localhost:3000/posts
If you do not already have an exceptional account, then you can sign up for free one, if you like.
Otherwise, create new app within your Exceptional account and give it a name (e.g "My Exceptional Heroku Blog")
$ script/plugin install git://github.com/contrast/exceptional.git
Edit the config/exceptional.yml file and overwrite PASTE_YOUR_API_KEY_HERE with your
exceptional API_Key (available from the 'installation instructions' screen within
Exceptional)
$ git init
$ git add .
$ git commit -m "My New Exceptional Heroku Rails App"
$ sudo gem install heroku
You will need to enter your Heroku name and password during this step
$ heroku create MyExceptionalHerokuBlog
$ git push heroku master
$ heroku open
Navigate to /posts
You will suddenly get an error form your Rails application. Go to Exceptional and you will quickly see the problem:
ERROR: relation \"posts\" does not exist\n: SELECT * FROM \"posts\" "
$ heroku rake db:migrate
$ heroku open
Navigate to /posts.
Simple!
Exceptional is the first and best error tracking service for Ruby on Rails applications.
“Exceptional has vastly improved our ability to prioritize and track down bugs on our site. Completely worth the money and highly recommended.” — Andrew Grim, Kongregate