【发布时间】:2014-06-24 22:54:00
【问题描述】:
我正在尝试将我的 rails 项目推送到 heroku 位,但执行 git push heroku master 捆绑器失败并显示以下消息:
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 中删除应用程序实例并重新创建它。
以下要点是我的 gemfile:https://gist.github.com/anonymous/84d3fc00566e036729cd
我正在为我的开发环境使用这个 vagrant box:https://github.com/ejholmes/vagrant-heroku
【问题讨论】:
标签: ruby-on-rails git heroku deployment