This covers using the following software versions:

  • ruby-1.9.2-p318
  • passenger-3.0.11
  • rails 3.2.2
  • Apache 2.2

In short, the following steps are necessary:

  1. Install RVM with the multi user instructions
  2. Check requirements
    rvm requirements
  3. Install ruby 1.9.2
    rvm install 1.9.2
  4. Install passenger
    gem install passenger
  5. Load passenger into apache with passenger.conf
  6. Add a new user called 'cap-deploy'
  7. Create a dir of /webapps and owned by the user and group of the apache process
  8. Create a dir of /webapps/yourrailsapp and the user and group of cap-deploy with perms of 775 (might be able to get away with less perms)
  9. Cap your rails application on your dev environment
  10. Add your rails app to a version management (I went with github) that is accessible by your hosting server
  11. Configure your version management to ignore the following files gitignore
  12. Add the following to your Cap file: Capfile
  13. Configure your /config/deploy.rb file with db support so that version control system does not share our db config: deploy.rb
  14. Run the cap and have fun!
  15. cap deploy:setup
  16. do first push
  17. cap deploy:cold
  18. do updates
  19. cap deploy
comments powered by Disqus