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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With