fix gemfile and precompile assets for heroku