You can get a PDF version of this tutorial here.
If you’re a developer, setting up a server might not look like something you’d do yourself. Most of the time you have a sysadmin in your team/company/business that can do the job for you. But knowing how to configure a server might make your life easier if you’re rolling on your own so let’s take a look at how we can configure a clean slate Ubuntu 10.04 server machine to run a Ruby on Rails application.
This example used a just created Ubuntu 10.04 image from Rackspace, but you should be able to follow it on any Ubuntu 10.04 install, even a local one.
With this tutorial you’ll learn how to:
- Install the libraries usually necessary to run Ruby on Rails application;
- Setup Nginx as the HTTP server proxy and statics assets server;
- Setup Unicorn as the application server that’s going to run your application;
- Setup Monit to watch over the processes
- Setup some basic firewall rules
- And finally deploy your Ruby on Rails application to it;
Remember that this tutorial is given in an “as is” basis and you should backup all system files we’re changing here.









