title: Capistrano deployment issues
body: <p>I've been wrestling with Capistrano, trying to deploy a test rails app for a couple of days, and I <em>think</em> I'm almost there, but I'm getting this error when I run <code>cap deploy</code>:</p>
  
  <pre><code>failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'default' -c 'cd var/rails/test_app/current/releases/20120619215252 &amp;&amp; bundle install --gemfile var/rails/test_app/current/releases/20120619215252/Gemfile --path var/rails/test_app/current/shared/bundle --deployment --quiet --without development test'" on my.vps.ip.address
  </code></pre>
  
  <p>What does it mean and how can I resolve the issue?</p>
  
  <p>Thanks!</p>
  
  <p>This is my deploy.rb file, if it helps:</p>
  
  <pre><code># RVM
  
  $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
  require "rvm/capistrano"
  set :rvm_ruby_string, 'default'
  set :rvm_type, :system
  
  # Bundler
  
  require "bundler/capistrano"
  
  # General
  
  set :application, "test_app"
  set :user, "rails"
  
  set :deploy_to, "var/rails/test_app/current"
  set :deploy_via, :copy
  
  set :use_sudo, false
  
  # Git
  
  set :scm, :git
  set :repository,  "~/Projects/test_app/.git"
  set :branch, "master"
  
  # VPS
  
  role :web, "my.vps.ip.address"
  role :app, "my.vps.ip.address"
  role :db,  "my.vps.ip.address", :primary =&gt; true
  role :db,  "my.vps.ip.address"
  
  # Passenger
  
  namespace :deploy do
   task :start do ; end
   task :stop do ; end
   task :restart, :roles =&gt; :app, :except =&gt; { :no_release =&gt; true } do
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
   end
  end
  </code></pre>