title: "bundler: failed to load command: thin" on Heroku
body: <p>I'm using Ruby 2.2.7, and Rails 3.2.21, and trying to deploy an with gem:  <code>locomotive_cms</code> of version: <code>~&gt; 2.5.7</code> on Heroku, and it gets deployed successfully, but I'm facing the following error:</p>
  
  <blockquote>
    <p>2017-08-12T23:33:13.732440+00:00 app[web.1]: bundler: failed to load command: thin (/app/vendor/bundle/ruby/2.2.0/bin/thin)
    2017-08-12T23:33:13.732490+00:00 app[web.1]:   /app/vendor/bundle/ruby/2.2.0/gems/excon-0.23.0/lib/excon/middlewares/expects.rb:6:in `response_call'</p>
  </blockquote>
  
  <p>And with that, it produces this too:</p>
  
  <blockquote>
    <p>Heroku::API::Errors::ErrorWithResponse: Expected(200) &lt;=> Actual(400 Bad Request)</p>
  </blockquote>
  
  <p>I have <code>thin</code> in my Gemfile which is necessary for locomotivecms according to its documentation.</p>
  
  <p>I have been on other similar questions too, but I'm still unable to solve my problem. I have Ruby version: <code>2.2.7</code>, and while it is saying: <code>/app/vendor/bundle/ruby/2.2.0/bin/thin</code></p>
  
  <p>Gemfile:</p>
  
  <pre><code>source 'https://rubygems.org'
  ruby "2.2.7"
  
  gem 'rails', '3.2.21'
  
  # Bundle edge Rails instead:
  # gem 'rails', :git =&gt; 'git://github.com/rails/rails.git'
  gem 'locomotive_cms', '~&gt; 2.5.7', :require =&gt; 'locomotive/engine'
  gem 'dotenv-rails'
  
  gem 'savon', '~&gt; 2.3.0' # SOAP client for pulling in events
  gem 'twitter', '5.8.0'
  gem 'twitter-text'
  gem 'whenever', require: false
  
  
  # Gems used only for assets and not required
  # in production environments by default.
  group :assets do
    gem 'compass-rails',  '~&gt; 2.0.0'
    gem 'sass-rails',   '~&gt; 3.2.4'
    gem 'coffee-rails', '~&gt; 3.2.2'
  
    # See https://github.com/sstephenson/execjs#readme for more supported runtimes
    gem 'therubyracer', :platforms =&gt; :ruby
  
    gem 'uglifier', '~&gt; 1.2.4'
  end
  
  group :development do
    gem 'unicorn'
    gem 'pry'
  end
  
  
  # To use ActiveModel has_secure_password
  # gem 'bcrypt-ruby', '~&gt; 3.0.0'
  
  # To use Jbuilder templates for JSON
  # gem 'jbuilder'
  
  # Use unicorn as the app server
  # gem 'unicorn'
  
  # Deploy with Capistrano
  # gem 'capistrano'
  
  # To use debugger
  # gem 'debugger'
  
  # To use on Heorku
  gem 'locomotive-heroku', '~&gt; 0.1.0', :require =&gt; 'locomotive/heroku'
  gem 'thin'
  </code></pre>
  
  <p>Gemfile.lock:</p>
  
  <p>You can find it here: <a href="https://gist.github.com/Arslan-Ali-Butt/640c1ec1750d17c9803e12a492f35c4e" rel="nofollow noreferrer">https://gist.github.com/Arslan-Ali-Butt/640c1ec1750d17c9803e12a492f35c4e</a></p>