Reputation: 9499
Ive developed several apps on heroku before and never ran into this error:
ActionView::Template::Error (application.css isn't precompiled):
My latest push didn't even have a change to the application.css
file.. Whats going on here?
Ive seen articles saying change a line in production.rb
to:
# Don't fallback to assets pipeline if a precompiled asset is missed
config.assets.compile = true
But wont that slow everything down? Why is this error suddenly happening? Whats the best way to fix it?
Edit: I should note its working in development just fine.
Upvotes: 6
Views: 7040
Reputation: 6808
Run rake assets:precompile:all
in your development environment. Ensure that it does not give you an error and that it creates public/assets/application.css
. If it does give you an error, resolving it should resolve the problem on Heroku.
Upvotes: 15