In my production.rb, I set my resource for CloudFront as follows:
config.action_controller.asset_host = 'http://xxxxxxxx.cloudfront.net'
Now I have found that in some cases (in particular, JavaScript output must be embedded in another site) I also need to set asset_host in the development environment, a default value of zero will not reduce it. Ideally, I want to install:
config.action_controller.asset_host = 'http://localhost:3000'
but this port cannot be guaranteed, and I donβt want to hard code it. Is there a way to set asset_host for the current domain and port?
Thanks!
superluminary
source share