Deployment
Deploying your application for the first time (or even tenth) can be an overwhelming experience. If you get stuck at any time during your deployment, don’t hesitate to ask our team for help by contacting our support team.
breaking news
argon_masala was just published and should help a lot. it puts all the deployment knowledge of these wiki docs into capistrano recipes so you don’t have to worry about all this (hopefully that is true—it is just the first release at the moment).Everything on this page is related to deploying a Rails application. If you’re attempting to deploy a non-Rails application, please look under Extras.
Okay, let’s get started…
Step 1: Understanding Rails Deployment
You’ll want to become familiar with the following technologies.
Step 2: Training your Mongrel
We highly encourage you to use Mongrel for running your Rails applications in a production environment.
Once you have your mongrel or mongrel::cluster running, you’ll want to select a proxy server to balance your mongrel instance(s).
Step 3: Selecting a proxy/web server
There are several options available to you for serving your Ruby on Rails applications. Each of them has it’s own benefits and drawbacks, so we’ll leave it to you to make the best decision for you. We have our favorites and you may have yours.
Nginx (our favorite in 2007)
- Basic Configuration
- Starting & Stopping
- Configuring for Multiple Apps on Separate Domains (including subdomains)
Pound (our favorite in 2006)
Lighttpd (our favorite in 2005)
Step 4: Make sure your app starts up when the server reboots
Configuration
When you’re trying to fine tune your deployment, some of these tutorials and tips may come in handy.