2013-05-01 188 views
5

我试图将其部署到Heroku的(轨道3的应用程序),并不断收到此错误:“找不到任何来源自举萨斯-2.3.1.1”在Heroku上推

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 

我有看着许多其他的“找不到[宝石]在任何来源的”的帖子,如:

Heroku- Could not find paperclip-3.1.3 in any of the sources Heroku: Could not find libv8-3.15.11.1 in any of the sources Could not find multi_json-1.7.2 in any of the sources

,并尝试了所有他们提出的解决方案,而我仍然总体性他的。

我的Gemfile:

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' 

预先感谢您能提供任何支持。

另外:

我跑

捆绑安装--without发展:测试--path供应商/束--binstubs供应商/包/箱--deployment

在终端,因为这是Heroku想要运行以查看会发生什么。显然,一旦你运行它,它会保存你设置的所有选项,所以现在当我运行“dundle install”时,它将使用所有这些选项。任何想法如何回滚到默认选项?

编辑

答案的第二部分为rm -rf .bundle & &捆绑安装

EDIT 2

这显然是一些与我的特殊的Gemfile。我用this线程取代了我的gemfile,并部署了它。

回答

1

您是否明确要求在您的gem文件中使用bootstrap-sass?

gem "bootstrap-sass", "2.3.1.1" 
+0

是的,同样的错误:( – 2013-05-01 18:01:47

+0

看着其他职位如[这里](HTTP://计算器。com/questions/11268771/rake-aborted-couldnt-find-file-twitter-bootstrap)即使引用了相同的gem,按照说明操作并得到相同的错误 – 2013-05-01 18:11:40

0

我有同样的问题。这是因为这个bootstrap-sass gem在资产组中。

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