title: Capistrano Bundler error on deployment
body: <p>I am trying to use capistrano to deploy and bundle my rails application.
  When I run cap deploy - or more specifically</p>
  
  <pre><code>bundle exec cap staging bundler:install --trace
  </code></pre>
  
  <p>I seem to have a perpetual error with the following stack trace.</p>
  
  <pre><code>** Invoke staging (first_time)
  ** Execute staging
  ** Invoke load:defaults (first_time)
  ** Execute load:defaults
  ** Invoke bundler:map_bins (first_time)
  ** Execute bundler:map_bins
  ** Invoke bundler:install (first_time)
  ** Execute bundler:install
  DEBUG [bd567504] Running /usr/bin/env if test ! -d /var/www/TMC/current; then echo "Directory does not exist '/var/www/TMC/current'" 1&gt;&amp;2; false; fi on 162.243.225.14
  DEBUG [bd567504] Command: if test ! -d /var/www/TMC/current; then echo "Directory does not exist '/var/www/TMC/current'" 1&gt;&amp;2; false; fi
  DEBUG [bd567504] Finished in 1.443 seconds with exit status 0 (successful).
   INFO [2058712b] Running /usr/bin/env bundle install --binstubs /var/www/TMC/shared/bin --path /var/www/TMC/shared/bundle --without development test --deployment --quiet on 162.243.225.14
  DEBUG [2058712b] Command: cd /var/www/TMC/current &amp;&amp; /usr/bin/env bundle install --binstubs /var/www/TMC/shared/bin --path /var/www/TMC/shared/bundle --without development test --deployment --quiet
  DEBUG [2058712b]    /usr/bin/env: bundle: No such file or directory
  cap aborted!
  SSHKit::Command::Failed: bundle exit status: 127
  bundle stdout: Nothing written
  bundle stderr: /usr/bin/env: bundle: No such file or directory
  /Library/Ruby/Gems/2.0.0/gems/sshkit-1.4.0/lib/sshkit/command.rb:98:in `exit_status='
  </code></pre>
  
  <p>I used chef to provision the machine and setup RBENV etc so i am not using capistrano/rbenv.
  The relevant section of my gemfile reads:</p>
  
  <pre><code>group :development do
        gem 'capistrano-rails', '~&gt; 1.0.0'
        gem 'capistrano-bundler', '~&gt; 1.1.2'
  end
  </code></pre>
  
  <p>I had to login and manually create the current directory in the /var/www/TMC/current path.</p>
  
  <p>Any ideas would be appreciated.</p>