title: Capistrano could not locate Gemfile error on application deployment
body: <p>I'm trying to deploy my Rails application to production server and I decided to deploy it to DigitalOcean using <a href="https://gorails.com/deploy/ubuntu/14.04#overview" rel="noreferrer">this guide</a> + RVM.</p>
  
  <p>To deploy I use following command:</p>
  
  <pre><code>cap production deploy
  </code></pre>
  
  <p>However, it fails at some part requiring gemfile. Here's the log of failed deployment:</p>
  
  <pre><code>DEBUG[323dfd0e] Command: cd /home/deploy/zwiadowcy/releases/20140628164657 &amp;&amp; ~/.rvm/bin/rvm default do bundle install --binstubs /home/deploy/zwiadowcy/shared/bin --path
  /home/deploy/zwiadowcy/shared/bundle --without development test --deployment --quiet
  DEBUG[323dfd0e]     Could not locate Gemfile
  cap aborted!
  SSHKit::Runner::ExecuteError: Exception while executing on host my_ip_address: bundle exit status: 10
  bundle stdout: Nothing written
  bundle stderr: Nothing written
  </code></pre>
  
  <p>My gemfile already contains all required things:</p>
  
  <pre><code>gem 'capistrano', '~&gt; 3.1.0'
  gem 'capistrano-bundler', '~&gt; 1.1.2'
  gem 'capistrano-rails', '~&gt; 1.1.1'
  gem 'capistrano-rvm', github: "capistrano/rvm"
  </code></pre>
  
  <p>I've googled half of the Internet and tried many things, looked through many questions here and I'm now at the point that I don't really know what to do so I kindly ask you for help. Thanks!</p>