I'm using heroku to deploy my app in ruby on rails, but have a problem, when I deploy my app, heroku doesn't update with the modifications I made, before I compiled my assets. I solved my problem in localhost using a simple
config.assets.initialize_on_precompile = false
config.assets.initialize_on_precompile = true
There's a few things to do. The first is to redeploy
$ rake assets:clean $ rake assets:precompile $ git add . ... deploy to heroku
If it still doesnt work, it could be a caching issue, in which case, you can manually bump the version in
config/application.rb and redeploy to expire all the previous assets
config.assets.version = '1.2' # change to '1.3'