Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to set asset_host for non-production environments #137

Open
acatighera opened this issue Aug 30, 2013 · 1 comment
Open

No way to set asset_host for non-production environments #137

acatighera opened this issue Aug 30, 2013 · 1 comment

Comments

@acatighera
Copy link

Looking through the docs I tried to use environment variables HOST/CDN_HOST but that did not do the trick either.

I need to set up a cdn host for my staging environment.

@lukesmith
Copy link
Contributor

I had a similar issue where we didn't want the cdn being used for staging and worked around it by conditionally setting the asset_hosts

asset_hosts %w(//xxxxxxxxxx.cloudfront.net) if app.settings.production?

You could do something similar if you have a setting that indicates it's staging?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants