rakesh@rakesh:~/rails/sapwii$ git push heroku master
Fetching repository, done.
Counting objects: 29, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (19/19), 58.09 KiB, done.
Total 19 (delta 15), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
Ruby version change detected. Clearing bundler cache.
Old: ruby 2.0.0p481 (2014-05-08 revision 45883) [x86_64-linux]
New: ruby 2.0.0p576 (2014-09-19 revision 47628) [x86_64-linux]
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/........
Could not find activemerchant-1.43.2 in any of the sources
Bundler Output: Fetching gem metadata from https://rubygems.org/........
Could not find activemerchant-1.43.2 in any of the sources
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
To git@heroku.com:sapwii.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:sapwii.git'
我尝试更改SSH密钥和heroku,只有在推送我的核心存储库才能提交并克隆
时才会出现此错误答案 0 :(得分:1)
从上面的错误中,错误是由活动商家版本引起的。如果您查看list of available versions for active merchant,您会看到版本1.43.2不存在。因此,您要么升级版本,要么降级版本。检查你的Gemfile并确保版本activemerchant被锁定为存在。
如果你没有锁定Gemfile中的activemerchant版本,只需运行bundle update activemerchant
即可解决问题。