Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Beyond Heroku: Hosting Your Rails App Yourself

623 views

Published on

These are the slides from my presentation at CPOSC 2013.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Beyond Heroku: Hosting Your Rails App Yourself

  1. 1. Beyond Heroku: Hosting Your Rails App Yourself Sean Carpenter @scarpenter sean@seancarpenter.net
  2. 2. Why not Heroku? • Cost • Lack of control • Dyno idling
  3. 3. How can you do it? • Many affordable Linux hosts: Amazon (free tier), Windows Azure (with MSDN), Digital Ocean, Linode • Lots of open source configuration management software
  4. 4. Hosting a Rails Application • Unicorn as the app server • nginx as a reverse proxy • Deployment via Capistrano
  5. 5. Unicorn • Rack HTTP server • Multiple workers - concurrency without multithreading • Graceful restarts • Ruby for configuration
  6. 6. nginx • Fast and reliable • Well documented • Available in most distros • Straightforward configuration
  7. 7. Capistrano • Deploys code directly from source control • Easy rollback • Executes DB migrations • Ruby for configuration
  8. 8. Demo
  9. 9. Questions? https://github.com/scarpenter/cposc @scarpenter http://www.cleverarmadillo.com
  10. 10. Questions? https://github.com/scarpenter/cposc @scarpenter http://www.cleverarmadillo.com

×