Update Rails version to 4.1.4
Run "bundle update"
Run "rake rails:update"

Keep config/secrets.yml
Modify serve_static_assets to true

To enable asset pipeline precompilation on Heroku

ref. https://devcenter.heroku.com/articles/rails-4-asset-pipeline