27.02.2013 Views

Rails%203%20In%20Action

Rails%203%20In%20Action

Rails%203%20In%20Action

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

This chapter covers<br />

� Deploying a Rails app to an Ubuntu server<br />

� Using RVM and Ruby in a server environment<br />

� Hosting a Rails app using the Passenger gem<br />

385<br />

Deployment<br />

In this chapter you’ll deploy your Ticketee application to a new Ubuntu install.<br />

Ubuntu is the preferred operating system for deploying Rails applications, mainly<br />

due to its simplicity of use and easy package management. You don’t need to install<br />

another operating system on your computer; you’ll be using a product called Oracle<br />

VM VirtualBox.<br />

You’ll set up this machine manually so that you can see how all the pieces fit<br />

together. There are automatic tools such Puppet, 1 Chef, 2 Babushka, 3 and Git<br />

Pusshuten 4 that can do most, if not all, of this setup for you. To cover them all adequately<br />

in this chapter would turn the chapter into a book. Deployment is an enormous<br />

subject and different people have very different opinions of how it should be<br />

1 http://puppetlabs.com.<br />

2 http://opscode.com/chef/.<br />

3 http://babushka.me.<br />

4 http://gitpusshuten.com/.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!