I'm deploying my Rails application using Heroku Pipelines (it's been reliable and fast).
However, because assets are only precompiled once, during their deployment to staging, the promoted CSS assets in production all contain references to images and fonts on the staging CDN.
// Precompiled Source:
background-image: image-url('background.png');
// Compfiled Result:
background-image: url('https://stagingcdn.domain.com/assets/backgroundXXXXXXX.png');
Is there a way to configure Rails to output relative paths for the asset-url() helpers, rather than the absolute path containing the asset_hosts domain?
Or some form of a post-promotion phase where I can run precompile again for production deployments? Looking through docs from Herkou hasn't suggested much, apart from switching to the asset-sync gem, which they actively discourage elsewhere.
Appreciate any experience or ideas.