Heroku Deploy can't find devise-1.4.6

2019-08-30 04:49发布

问题:

Trying to deploy to Heroku but get the following error:

-----> Gemfile detected, running Bundler version 1.0.7
       Unresolved dependencies detected; Installing...
       Using --without development:test
       Fetching source index for http://rubygems.org/
       Could not find devise-1.4.6 in any of the sources
       FAILED: http(preventing hyperlink)://devcenter.heroku.com/articles/bundler
 !     Heroku push rejected, failed to install gems via Bundler

I have "gem 'devise'" in my gem file, have "source 'http://rubygems.org'" at the top, and have run both bundle install and bundle update. Not sure why Heroku is looking for 1.4.6. Any ideas?

Thanks!

John

Here is the gemfile:

source 'http://rubygems.org'

gem 'rails', '3.0.9'
gem 'devise'

gem 'sqlite3', '1.3.3', :group => :development

Looks like devise 1.4.6 is no longer at Rubygems.com: http://rubygems.org/gems/devise/versions

I tried using devise 1.4.5, but it didn't work either.

回答1:

You need to update the locked version of Devise in your Gemfile.lock.

$ bundle update devise

Then commit, push and deploy to Heroku.



标签: heroku devise