Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap works locally but not on heroku #83

Closed
danielristic opened this issue Oct 3, 2013 · 1 comment
Closed

Bootstrap works locally but not on heroku #83

danielristic opened this issue Oct 3, 2013 · 1 comment

Comments

@danielristic
Copy link

I'm using this gem with a standard Rails 4 project.

Here's what I have in my Gemfile:

gem 'anjlab-bootstrap-rails', '~> 3.0.0.3', :require => 'bootstrap-rails'

and in application.css.scss:

@import "twitter/bootstrap";

Bootstrap styles display correctly from the local server, but when I put it on heroku the styles don't show and in the logs I have this.

ActionController::RoutingError (No route matches [GET] "/assets/application-f0d48bdf52d6c4390445f54c105f015c.css"):

Unlike issue #68 , the assets precompilation works fine when pushing on heroku.

@danielristic
Copy link
Author

I figured it out, nothing to do with this gem: In order to serve assets on heroku with rails 4, you need to add the rails_12factor gem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant