rustammamedov.wordpress.com
Passenger + Capistrano + Nginx + Rails 2.3.4 + Ubuntu 9.04 (10 steps) | Technical notes
https://rustammamedov.wordpress.com/2009/12/27/capistrano-nginx-mongrel-deployment
Passenger Capistrano Nginx Rails 2.3.4 Ubuntu 9.04 (10 steps). Install capistrano gem. if you use bundler. You need to add just one line to Gemfile. After capistrano installed you need to make Capfile and default deploy.rb, run such from the root of your application. Create user for deployments in remote machine (let’s say ‘deploy’ user). Add sudo privileges to this user. add one line in your /etc/sudoers file. Deploy ALL=(ALL) NOPASSWD: ALL. Adjust deploy.rb for you. I used example from this link. Run("...