Rake interrupted! could not find twitter / bootstrap file

I follow the Hartl tutorial on ROR 3.2, I create a simple application that works fine locally, but when I try to deploy it to a hero using wiki $ git push heroku master, rake assets: precompile does not work because “cann’t find the file twitter / bootstrap ". (error caused by application.js) I already have a Google problem, but none of these answers work for me: Heroku deployment ends after upgrading to bootstrap 2.0.1 using twitter-bootstrap-rails

Could not find file 'twitter / bootstrap' in Production

can someone help me deal with the problem? If I need to attach some files, or if you need information, please tell me. Thanks you

here is the gemfile

gem 'rails', '3.2.6'

group :development do
gem 'sqlite3'
gem 'annotate', '~> 2.4.1.beta'
end

group :production do
  gem 'pg'
end

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'twitter-bootstrap-rails', '~> 2.0.1.0'
  gem 'bootstrap-sass', '~> 2.0.3'
  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'
gem 'bcrypt-ruby', '3.0.1'
0
source share
3 answers

I had a similar problem that was fixed by moving bootstraps of related jewelry from an asset group to a gemfile. Insert it along with your regular gem list and it should work well.

+1
source

Have you added:

# Allow compilation of assests on Heroku
config.assets.initialize_on_precompile = false

to config / application.rb? This was the last step I took to fix my problems with Heroku.

You should also leave gem 'bootstrap-sass', '~> 2.0.3'in your block group assets do, despite what I read on the Internet.

gem, , Heroku:

source 'https://rubygems.org'

group :development, :test do
  gem 'rspec-rails', '2.9.0'
  gem 'guard-rspec', '0.5.5'
end

group :test do
  gem 'capybara', '1.1.2'
end

group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'uglifier', '>= 1.0.3'

  gem 'bootstrap-sass', '~> 2.0.3'
end

gem 'rails', '3.2.2'
gem 'pg', '0.13.2'
gem 'jquery-rails', '2.0.2'
gem 'simple_form', '2.0.1'
0

, :

  • twitter-bootstrap-rails -: assets gemfile
  • twitter-bootstrap-rails gem version 2.2.6 gemfile. gem 'twitter-bootstrap-rails',: git = > 'git://github.com/seyhunak/twitter-bootstrap-rails.git'

twitter-bootstrap-rails 2.2.6 , twitter-bootstrap-rails.

-1

All Articles