我正在尝试将我的Rails项目推送到Heroku,但在执行git push heroku master
时,Bundler会出现以下错误信息:
Bundler Output: Fetching gem metadata from https://rubygems.org/.........
Fetching additional metadata from https://rubygems.org/..
Fetching git://github.com/justinfrench/formtastic.git
Fetching git://github.com/activerecord-hackery/ransack.git
Fetching git://github.com/gregbell/active_admin.git
Could not find jwt-0.1.12 in any of the sources
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app
To git@heroku.com:murmuring-mountain-9361.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:murmuring-mountain-9361.git'
似乎jwt是我一个gem的依赖项,但它在我的本地环境上安装正常。 我尝试在gemfile中明确声明
gem'jwt','0.1.12'
,在本地工作良好,但在heroku上不行,并尝试删除Gemfile.lock并再次生成它。 我甚至尝试从heroku中删除app实例并重新创建它。以下是我的gemfile代码: https://gist.github.com/anonymous/84d3fc00566e036729cd 我正在使用此vagrant box作为我的开发环境: https://github.com/ejholmes/vagrant-heroku
gem 'jwt','0.1.11'
是否就足够了呢? - zkwsk