Moving to 3.1 on Heroku
Took some lumps moving to 3.1 on Heroku.
Here’s some lessons:
config.assets.initialize_on_precompile = false
this has to be set per Rails Guides and Heroku.
- run “bundle exec rake assets:precompile” locally before pushing to Heroku. I had a lot of stuff work locally, but when Heroku compiled it, it blew up. There were a lot of things that I needed to change in my CSS files, working through them one by one
- the precompile generated files i uploaded (for the asset
- I was getting some errors related to the Sass-rails gem even though it was included in my gemfile. Turns out I had to move it so that it was outside of this block “group :assets do” that I had it in