ruby - Rerouting to AWS hosted assets from a Heroku Rails app -
i have heroku hosted rails app has reached 300mb limit slug size , can no push heroku. fix issue, i've setup aws s3 account , want redirect assets being requested rails app new s3 location. rails app serving json files point static assets using relative url. ios app using rails json has hardcoded domain url, , appends path resources domain , requests assets needs. i want update heroku app , change asset locations without requiring update ios app in order change asset domain. so, need redirect static asset requests rails app aws server. in git repo, i've ignored assets in public folder i've moved aws server. asset files present on local machine, not part of git repo when uploaded heroku. so far i've tried changing config.action_controller.asset_host not seem work since these static assets , being returned web server before rails gets it. i tried using routes rules redirect different domain, these routes never seem captured. static files appear returned befo...