Ruby on Rails tutorial for the Rackspace Cloud
At Rackspace, our goal is to support our customers in any way we can. To move towards that goal, we decided to create a couple of tutorials aimed at beginning to intermediate Ruby on Rails developers. We hope that in sharing some knowledge, we are able to help you better achieve your own goals.
The first tutorial deals with using the Rackspace Cloud API (via the fog gem) to recreate a very basic server control panel with Ruby on Rails. We'll explore some intermediate concepts like databaseless models, and introduce you to the basics of interacting with Rackspace with fog. At the end, you'll have the beginnings of a custom control panel. You should have a grasp of some of the gotchas, tradeoffs, and techniques that can be used to help you refine your cloud infrastructure management workflow.
The second tutorial shows you how to set a Rackspace Cloud Server up for a Ruby on Rails production deployment. We'll walk you step by step through basic security setup, installation of the web stack (Ruby, Rails, MySQL, Passenger/Nginx, etc), and deployment of an app with Capistrano. There are a lot of moving parts, but once you see how they all fit together, you'll find that administering your own servers isn't that bad, and the knowledge will help you become a better developer even if you leave it to someone else.
Damon Cali is a freelance web development and marketing consultant, and the owner of Ninth Yard, LLC. Damon has been working with Ruby and Rails since 2006, and has filled various roles for startups in Austin, Texas. In a prior life, Damon was a mechanical engineer on NASA's Hubble Space Telescope program, where he worked in the areas of structural dynamics, composite material testing, and design.