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

Don't set ASSET_HOST environment if no asset host configured #302

Merged
merged 1 commit into from
Apr 28, 2017
Merged

Don't set ASSET_HOST environment if no asset host configured #302

merged 1 commit into from
Apr 28, 2017

Conversation

mattmacleod
Copy link
Contributor

This change avoids setting the ASSET_HOST environment variable in the compilation rake task if no asset host is set in Rails' configuration.

Previously—introduced in #224—if no asset host was configured, this environment variable would be set to an empty string, which caused the default ifHasCDN check in configuration.js to always return true in production.

This change avoids setting the ASSET_HOST environment variable in the
compilation rake task if no asset host is set in Rails' configuration.
Previously, if no asset host was configured, this environment variable
would be set to an empty string, which caused the default `ifHasCDN`
check in `configuration.js` to always return `true` in production.
@gauravtiwari gauravtiwari merged commit 3d53587 into rails:master Apr 28, 2017
@gauravtiwari
Copy link
Member

thanks @mattmacleod 👍

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

Successfully merging this pull request may close these issues.

2 participants