I have a rails 3.2 app, and it is giving me the ol' 'We're sorry but something went wrong.' message when I deploy to heroku. A check of the logs has
2013-11-13T17:27:25.599927+00:00 app[web.1]: Started GET "/" for 54.247.188.179 at 2013-11-13 17:26:25 +0000 2013-11-13T17:27:25.599927+00:00 app[web.1]: 2013-11-13T17:27:25.599234+00:00 app[web.1]: Rendered static_pages/root.html.erb within layouts/application (5.9ms) 2013-11-13T17:27:25.599506+00:00 app[web.1]: Completed 500 Internal Server Error in 7ms 2013-11-13T17:27:25.600076+00:00 app[web.1]: Completed 500 Internal Server Error in 7ms 2013-11-13T17:27:25.600076+00:00 app[web.1]: Rendered static_pages/root.html.erb within layouts/application (6.1ms) 2013-11-13T17:27:25.600076+00:00 app[web.1]: 10: 2013-11-13T17:27:25.600076+00:00 app[web.1]: ActionView::Template::Error (static_pages.css isn't precompiled): 2013-11-13T17:27:25.600076+00:00 app[web.1]: 9:
Along with some other stuff that looks very similar. I have been working on this for quite a bit and seen some other similar questions, so I'll head off some potential problems you think I might have:
- I have no public/assets folder on my local before pushing to heroku
- I have the line config.assets.enabled = true in my application.rb
- I have the line config.assets.initialize_on_precompile = false in my application.rb
Thanks in advance, happy to supply more info.
Resolved
Apparently in order to get that css to compile correctly I had to add this line to config/environments/production.rb:
config.assets.enabled = true
Thanks to Tyler for that one.