HEROKU
awesome rails hosting
WHAT IS HEROKU?


➡   hosting
➡   ruby on rails applications
➡   cloud based services
➡   deployment through git
➡   herok...
WHY USE HEROKU?
➡   forget about servers
➡   only care about your app
➡   only pay when it booms
RAKE ON HEROKU




➡   run your custom rake tasks
CONSOLE ON HEROKU




➡   debug your online application
DB INTERACTION



                 ➡   do your migrations
                 ➡   push local DB to remote DB
                ...
GEMS ON HEROKU




➡   add to .gems file
➡   installed on deploy/push
DYNOS ON HEROKU




             ➡   individual web server instance
             ➡   thin server
             ➡   runs on ...
WORKERS ON HEROKU



        ➡   delay job framework
        ➡   background tasks
        ➡   1 delay job at a time
      ...
WHEN YOUR APP BOOMS




➡   add dynos
➡   add workers
➡   change plan
RAILS 3 ON HEROKU
➡   currently in beta mode
➡   last stable rails version
ADD-ONS ON HEROKU
➡   amazon RDS
➡   bundles                  ➡   sendgrid
➡   custom domains           ➡   websolr
➡   cr...
PROBLEMS ON HEROKU

➡   first request can be slow
➡   no read write access
APPS ON HEROKU
➡   shopify.com
➡   scrumninja.com
➡   flightcaster.com
DEMO
PICTURES BY...

➡   slide 1: flickr.com/lonesome_cycler           ➡   slide 9: flickr.com/squeaks2569

➡   slide 2: flickr.co...
Upcoming SlideShare
Loading in...5
×

Heroku

3,017

Published on

A small explanative presentation on the Heroku hosting service for your Ruby on Rails applications. Presentation was used for Barcamp Antwerp 2010.

Published in: Technology
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,017
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
55
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide







  • one machine goes down the other stays up
  • don't do heavy calculations in your web process
    instead let a background process do the job
    use background jobs when request run longer than 500ms
    fetching data from remote APIs, reading RSS feeds, resizing images, and uploading data to S3


  • beta testers are currently testing the rails 3 implementation on heroku
    heroku makes sure you can always use the last stable rails version

  • unless you purchased something on heroku
    you can use amazon service for this



  • Heroku

    1. 1. HEROKU awesome rails hosting
    2. 2. WHAT IS HEROKU? ➡ hosting ➡ ruby on rails applications ➡ cloud based services ➡ deployment through git ➡ heroku gem
    3. 3. WHY USE HEROKU? ➡ forget about servers ➡ only care about your app ➡ only pay when it booms
    4. 4. RAKE ON HEROKU ➡ run your custom rake tasks
    5. 5. CONSOLE ON HEROKU ➡ debug your online application
    6. 6. DB INTERACTION ➡ do your migrations ➡ push local DB to remote DB ➡ pull remote DB to local DB
    7. 7. GEMS ON HEROKU ➡ add to .gems file ➡ installed on deploy/push
    8. 8. DYNOS ON HEROKU ➡ individual web server instance ➡ thin server ➡ runs on separate machine
    9. 9. WORKERS ON HEROKU ➡ delay job framework ➡ background tasks ➡ 1 delay job at a time ➡ increase/decrease with slider
    10. 10. WHEN YOUR APP BOOMS ➡ add dynos ➡ add workers ➡ change plan
    11. 11. RAILS 3 ON HEROKU ➡ currently in beta mode ➡ last stable rails version
    12. 12. ADD-ONS ON HEROKU ➡ amazon RDS ➡ bundles ➡ sendgrid ➡ custom domains ➡ websolr ➡ cron ➡ ssl ➡ deploy hooks ➡ memcached (beta) ➡ exceptional ➡ zerigo dns ➡ new relic ➡ amqp (beta)
    13. 13. PROBLEMS ON HEROKU ➡ first request can be slow ➡ no read write access
    14. 14. APPS ON HEROKU ➡ shopify.com ➡ scrumninja.com ➡ flightcaster.com
    15. 15. DEMO
    16. 16. PICTURES BY... ➡ slide 1: flickr.com/lonesome_cycler ➡ slide 9: flickr.com/squeaks2569 ➡ slide 2: flickr.com/oberazzi ➡ slide 10: flickr.com/micurs ➡ slide 3: flickr.com/soldiersmediacenter ➡ slide 11: flickr.com/neilsingapore ➡ slide 4: flickr.com/mikefink ➡ slide 12: flickr.com/allyzally ➡ slide 5: flickr.com/wwward0 ➡ slide 13: flickr.com/saturnine ➡ slide 6: flickr.com/adesigna ➡ slide 14: flickr.com/istorija ➡ slide 7: flickr.com/spyker3292 ➡ slide 15: flickr.com/jgarber ➡ slide 8: flickr.com/slworking ➡ slide 16: flickr.com/digital1
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×