4 ms·
This is smart, I usually use the precompile with upload to S3 via asset_sync gem. Since Heroku will precompile by default, what do you do to disable it. Just
by amalag 13y ago
This is smart, I usually use the precompile with upload to S3 via asset_sync gem. Since Heroku will precompile by default, what do you do to disable it. Just turning on config.serve_static_assets = true is likely not enough.
- alinajaf 13y ago> This is smart, I usually use the precompile with upload to S3 via asset_sync gem I used to do the same until cloudfront rolled out custom origins. > Since Heroku will precompile by default, what do you do to disable it. I misspoke in my comment, what I meant was you can skip the synch with S3 step. I've never actually bothered to stop heroku precompiling assets (though I may as well). This question on SO looks promising: http://stackoverflow.com/questions/8953360/preventing-heroku-from-using-precompiled-assets-in-development-mode http://stackoverflow.com/questions/8953360/preventing-heroku... If you do that though, as you mentioned, you will definitely need to flip serve_static_assets on.