Ruby on rails &引用;在任何源中都找不到bootstrap-sass-2.3.1.1“;论Heroku推

Ruby on rails &引用;在任何源中都找不到bootstrap-sass-2.3.1.1“;论Heroku推,ruby-on-rails,ruby-on-rails-3,heroku,bundle,bundler,Ruby On Rails,Ruby On Rails 3,Heroku,Bundle,Bundler,我正在尝试部署到Heroku(rails 3应用程序)并不断收到以下错误: Checking in `vendor/bundle` is not supported. Please remove this directory and add it to your .gitignore. To vendor your gems with Bundler, use `bundle pack` instead. -----> Installing dependenc

我正在尝试部署到Heroku(rails 3应用程序)并不断收到以下错误:

 Checking in `vendor/bundle` is not supported. Please remove this directory
       and add it to your .gitignore. To vendor your gems with Bundler, use
       `bundle pack` instead.
-----> 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
我看过很多其他“在任何来源中都找不到[gem]”的帖子,比如:

尝试了他们提出的所有解决方案,但我仍然得到了这些

我的档案:

source 'https://rubygems.org'

gem 'rails', '~> 3.2.11'

group :production, :staging do
  gem 'pg'
end
group :development, :test do
  gem 'sqlite3'
  gem "better_errors"
  gem 'rails-footnotes', '>= 3.7.5.rc4'
end

group :assets do
  gem 'therubyracer', :platforms => :ruby
  gem 'uglifier', '>= 1.0.3'
end

gem "less-rails"
gem 'sass-rails', '~> 3.2'
gem "twitter-bootstrap-rails"
gem 'jquery-rails'
gem 'omniauth'
gem 'omniauth-twitter'
gem "paperclip", "~> 3.0"
gem 'thin'
gem 'rails_admin'
gem 'devise'
gem 'binding_of_caller'
gem 'twilio-ruby'
gem 'aws-sdk'
gem 'aws-s3'
gem 'twitter'
提前感谢您提供的任何支持

此外:

我跑

bundle安装--无需开发:测试--路径供应商/bundle--binstubs供应商/bundle/bin--部署

在终点站,这就是希罗库想跑去看看会发生什么。显然,一旦你运行它,它会保存你设置的所有选项,所以现在当我运行“dundle安装”时,它会使用所有这些选项。知道我如何回滚到默认选项吗

编辑

第二部分的答案是rm-rf.bundle&&bundle安装

编辑2


很明显,这和我的档案有关。我用线程中的一个文件替换了我的gem文件,并部署了它。

您是否尝试过在gem文件中明确要求引导sass

gem "bootstrap-sass", "2.3.1.1"

这是引导sass gem本身的一个bug

我设定如下:

gem "bootstrap-sass", "2.3.1.0"
然后跑

gem uninstall bootstrap-sass
bundle update bootstrap-sass
bundle install

并且能够再次推到heroku。

我也有同样的问题。这是因为bootstrap sass gem属于资产组

我从资产组中删除了它,它在Heroku中运行良好

查看了其他类似的帖子,甚至引用了相同的gem,按照说明操作,我收到了相同的错误谢谢!此外,它是“rails管理员”拉着这个宝石一起。