Set config.assets.initialize_on_precompile to false for heroku.
Modify gemfile to work with heroku.