Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been learning Rails for the last few days and during this period, I've tested out Heroku and it's great to just do a "git push heroku" and the entire application is up and running. The problem is that I already have a VPS and I'd like the similar deployment method. How would I do this? Which web server is the best to use? My issue isn't performance - I just want fast and easy deployment. Is this even possible?

share|improve this question

My suggestion is to check out Capistrano; it offers pretty painless deployment once you've got your configs set up. I've been checking this out lately as well and it acts much similar to rake; you just run cap followed by an argument or two and it runs the deployment right out of your git or svn repo.

The documentation is very helpful, I've found. We use Capistrano for all of our projects at my company. It can be simple enough for a one-off project, or for managing a whole slew of them (but if you're doing the latter, I also recommend using Capistrano with Webistrano, to manage them via a web admin).

share|improve this answer

It absolutely is, I'm deploying this way.

I wrote an article about git hooks some time ago. It is about automatically testing your codebase before commiting anything into your SCM. But you can easily rewrite it to run your Capistrano tasks (or custom deployment script), for example when you commit to or merge into your master branch.

Maybe it helps you as a starting point:

(Shameless plug: At the moment, I'm writing an ebook which will cover everything from setting up your VPS for Rails hosting to deploying with a simple git push, so you may consider subscribing to my newsletter at the end of this article to be notified when I ship it.)

Hope that helps a bit!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.