title: Ruby on Rails, Deploy via Capistrano setup error
body: <p>I am setting up Capistrano in a rails project for first time. When I run "cap production deploy:check" it goes OK. But when I run "cap prodution deploy" it gives back the following error...</p>
  
  <pre><code>(Backtrace restricted to imported tasks)
  cap aborted!
  SSHKit::Runner::ExecuteError: Exception while executing as deploy@mysite.com: bundle exit status: 127
  bundle stdout: Nothing written
  bundle stderr: /usr/bin/env: bundle: No such file or directory
  
  SSHKit::Command::Failed: bundle exit status: 127
  bundle stdout: Nothing written
  bundle stderr: /usr/bin/env: bundle: No such file or directory
  
  Tasks: TOP =&gt; deploy:updated =&gt; bundler:install
  (See full trace by running task with --trace)
  The deploy has failed with an error: Exception while executing as deploy@mysite.com: bundle exit status: 127
  bundle stdout: Nothing written
  bundle stderr: /usr/bin/env: bundle: No such file or directory
  </code></pre>
  
  <p>I am using rails 4.2.3. Ruby 2.2.2(with RVM). I have the following gems added for capistrano on Gemfile...</p>
  
  <pre><code>gem 'capistrano', '~&gt; 3.4.0'
  gem 'capistrano-rvm', '~&gt; 0.1.2'
  gem 'capistrano-bundler', '~&gt; 1.1.4'
  gem 'capistrano-rails', '~&gt; 1.1.3'
  gem 'capistrano3-unicorn', '~&gt; 0.2.1'
  </code></pre>