Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActionView::Template::Error (application.css isn't precompiled):

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.

like image 560
Deekor Avatar asked Feb 11 '13 22:02

Deekor


1 Answers

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.

like image 146
Daniel Evans Avatar answered Oct 20 '22 07:10

Daniel Evans