anjlab / bootstrap-rails

Twitter Bootstrap CSS (with Sass flavour) and JS toolkits for Rails 3 projects
https://github.com/anjlab/bootstrap-rails
729 stars 96 forks source link

Not running on Heroku #55

Closed rafrafgit closed 11 years ago

rafrafgit commented 11 years ago

I get the following error when you update my build (rails 3.2) on heroku

/app/vendor/bundle/ruby/2.0.0/bundler/gems/bootstrap-rails-507323616c5a/lib/bootstrap-rails/engine.rb:6:in `block in class:Engine': uninitialized constant Bootstrap::Rails::Engine::Sass (NameError)

please help :/

rafrafgit commented 11 years ago

I should add that it works fine locally on my machine.

yury commented 11 years ago

https://github.com/anjlab/bootstrap-rails/issues/44

What section are you using for bootstrap-rails? it should be in same section as Sass gem

rafrafgit commented 11 years ago

Thanks for the quick answer. Im using gem 'sass-rails', '~> 3.2.3'

Do I need to specify bootstrap-rails in my gem file?

rafrafgit commented 11 years ago

Here is the gemfile

source 'https://rubygems.org'

gem 'rails', '3.2.13' gem 'anjlab-bootstrap-rails', :require => 'bootstrap-rails', :github => 'anjlab/bootstrap-rails', :branch => '3.0.0' gem 'bcrypt-ruby', '3.0.1' gem 'letsrate' gem "paperclip", "~> 3.0" gem 'aws-sdk' gem 'acts_as_commentable', '3.0.1' gem 'rails_autolink'

group :development, :test do gem 'sqlite3', '1.3.5' gem 'rspec-rails', '2.11.0' end

Gems used only for assets and not required

in production environments by default.

group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '3.2.2' gem 'uglifier', '1.2.3' end

gem 'jquery-rails'

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

group :production do gem 'pg', '0.12.2' end

yury commented 11 years ago

ok, just move everything out from :assets group.

rafrafgit commented 11 years ago

thanks, that did the trick :)