 <p>First check the Gemfile is present in server or not.</p> <p>If present, then specify the location in your configuration file by adding below code.</p> <blockquote> <p><code>set :bundle_gemfile, "rails_code/Gemfile"</code></p> </blockquote>