Jump to ratings and reviews
Rate this book

Deploying Rails: Automate, Deploy, Scale, Maintain, and Sleep at Night

Rate this book
Today's modern Rails applications have lots of moving parts. Make sure your next production deployment goes smoothly with this hands-on book, which guides you through the entire production process. You'll set up scripts to install and configure all the software your servers need, including your application code. Once you're in production, you'll learn how to set up systems to monitor your application's health, gather metrics so you can stop problems before they start, and fix things when they go wrong.

Deploying Rails takes you on a expertly guided tour of the current best practices in Rails deployment and management. You'll find in-depth explanations on effectively running a Rails app by leveraging popular open source tools such as Puppet, Capistrano, and Vagrant. Then you'll go beyond deployment and learn how to use Ganglia and Nagios to monitor your application's health and gather metrics so you can head off problems before they happen.

You'll start out by building your own virtual environment by writing scripts to provision a production server with Vagrant and Puppet. Then you'll leverage the popular Rails deployment tool Capistrano to deploy an application into this infrastructure. Once the app is live, you'll monitor your application's health with Nagios, and configure Ganglia to collect system metrics. Finally, you'll see how to keep your data backed up, recover data when things go wrong, tame your log files, and use Puppet to automate everything along the way.

Whether you're a Rails developer who wants a better understanding of the needs of a production Rails system, if you're a system administrator who wants to manage a Rails application, or if you're bridging the gap between development and operations, this book will be your roadmap to successful production deployment and maintenance, whether your application has ten users or ten million users.

What You

The exercises and examples are most suited to a computer running some Unix variant, such as Mac OS X or Linux. But a Windows machine running Linux in a VirtualBox virtual machine is also sufficient.

We'll show you how to set up a local virtual machine for your deployments; you won't need a dedicated server to hone your deployment skills. We expect you to have a basic familiarity with the Ruby programming language, the Ruby on Rails framework, and the Unix command line.

ebook

First published July 1, 2012

2 people are currently reading
75 people want to read

About the author

Tom Copeland

76 books

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (5%)
4 stars
26 (43%)
3 stars
26 (43%)
2 stars
5 (8%)
1 star
0 (0%)
Displaying 1 - 3 of 3 reviews
Profile Image for Larry.
74 reviews15 followers
August 13, 2012
Good intro for someone new to the Ruby on Rails world. For experts in Rails deployments, however, there was nothing new here. Additionally, I didn't agree with all their tool choices, but they often mention alternatives which was helpful.
Profile Image for Anthony.
6 reviews
February 11, 2016
Pushing out your first rails app can be pretty daunting, Deploying rails breaks down each step in the process, making it easy to under stand implement.

Displaying 1 - 3 of 3 reviews

Can't find what you're looking for?

Get help and learn more about the design.