1 / 38

Building and Deploying a Ruby on Rails Application on Amazon EC2

Building and Deploying a Ruby on Rails Application on Amazon EC2. Rob Lambert rob@zabada.com twitter.com/zabada. About me (Rob Lambert) Independent software developer (Zabada, Inc.) Long time Java guy Lean heavily towards developing solutions utilizing open source software

sandra_john
Download Presentation

Building and Deploying a Ruby on Rails Application on Amazon EC2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Building and Deploying a Ruby on Rails Application on Amazon EC2 RobLambert rob@zabada.com twitter.com/zabada

  2. About me (Rob Lambert) • Independent software developer (Zabada, Inc.) • Long time Java guy • Lean heavily towards developing solutions utilizing open source software • Try not to be religious in choice of platform, having recently developed solutions • in Java, Ruby on Rails and LAMP

  3. This Talk • Quick Ruby on Rails Overview • Quick EC2 Overview • Demo: • Create Rails App From Scratch • Create EC2 Instance and Deploy Rails Application • Iterate: Add New Features and Re-Deploy (as time permits)

  4. Rails is the holy grail (and the silver bullet)!

  5. No. But great for a lot of use cases. And it’s a joy to use.

  6. Image Credit: http://betterexplained.com/articles/intermediate-rails-understanding-models-views-and-controllers/

  7. Image Credit: http://geekandpoke.typepad.com/

  8. Photo Credit: http://www.flickr.com/photos/pixeljones/24128166/

  9. ActiveRecord Image Credit: O’Reilly http://oreilly.com/catalog/9780596101329/toc.html

  10. Image Credit: http://www.flickr.com/photos/sebastian_bergmann/2282734669/

  11. Image Credit: http://www.flickr.com/photos/dan4th/2426490952/

  12. Photo Credit: http://www.flickr.com/photos/these_are_julies_pics/3189991391/

  13. Photo Credit: http://www.flickr.com/photos/notsogoodphotography/770557316/

  14. EC2 is the holy grail (and the silver bullet)!

  15. No. Great for a lot of use cases. Some downsides (but most can be mitigated)

  16. Photo Credit: http://www.flickr.com/photos/kky/704056791/

  17. Other “cloud” or “utility computing” vendors … (not necessary applicable for Rails Apps)

  18. Demo ( going to build a a Rails app from scratch and deploy on EC2; hopefully iterate a couple times and deploy new features )

  19. Prequisites I’m already set up with: • EC2 Command Line Tools • (w/ public/private keys configured) • Ruby 1.8.6 • Rails 2.2.2 (latest is 2.3.2) • Capistrano 2.5.5 • SVN/Git

  20. GO! Home Viewers can pull down code that was developed: svn co http://subversion.assembla.com/svn/zabada_public/codecampbook (see README for quick and dirty steps to deploy on EC2)

  21. RAILS RESOURCES http://rubyonrails.org/ http://guides.rubyonrails.org/ http://railsenvy.com/ (Weekly Podcast) http://railscasts.com/ (Screencasts) http://modrails.com/(easy & robust Rails deployment; not currently used in EC2onRails)

  22. EC2 RESOURCES Wikipedia (Good Overview, including pricing etc.) http://en.wikipedia.org/wiki/Amazon_Elastic_Compute_Cloud Official Site http://aws.amazon.com/ec2/ Official FAQs http://aws.amazon.com/ec2/faqs/ EC2 on Rails http://ec2onrails.rubyforge.org/ http://github.com/pauldowman/ec2onrails http://www.zabada.com/tutorials/deploying-a-rails-application-to-production-on-amazon-ec2.php

  23. If you are experimentally playing with EC2, when you’re done, don’t forget to … SHUT DOWN YOUR INSTANCE(S)! > ec2-describe-instances > ec2-terminate-instances i-XXXXXXXXX

  24. Thanks! CONTACT ME rob@zabada.com twitter.com/zabada linkedin.com/in/roblambert www.zabada.com

More Related