2013-05-01 176 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上運行良好