我无法将我的Rails项目推送到heroku,找不到bootstrap-sass

时间:2013-05-01 21:50:22

标签: ruby-on-rails ruby heroku gem bundler

当我尝试将项目推送到Heroku时,我收到此错误:

-----> Deleting 3 files matching .slugignore patterns.
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
       Fetching gem metadata from https://rubygems.org/.......
       Fetching gem metadata from https://rubygems.org/..
       Could not find bootstrap-sass-2.3.1.1 in any of the sources
 !
 !     Failed to install gems via Bundler.
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

To git@heroku.com:kerbal-space-station.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:kerbal-space-station.git'

但是我的Gemfile肯定有,并且bundle install本地工作正常。

3 个答案:

答案 0 :(得分:1)

bootstrap-sass 2.3.1.1被猛烈抨击:https://rubygems.org/gems/bootstrap-sass/versions

你应该跑:

bundle update bootstrap-sass

然后提交新的Gemfile.lock并推送到heroku

答案 1 :(得分:1)

bootstrap-sass的最后一个版本是2.3.1.0,你正在寻找2.3.1.1并且它不存在。

检查你的gemfile并添加:

gem 'bootstrap-sass', '2.3.1.0'

答案 2 :(得分:0)

您不需要输入只能放置的版本号

gem 'bootstrap-sass'

然后做

bundle update