Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Bugfix for ACSF db name. #418

Merged
merged 1 commit into from
Sep 19, 2016
Merged

Bugfix for ACSF db name. #418

merged 1 commit into from
Sep 19, 2016

Conversation

lcatlett
Copy link
Contributor

@lcatlett lcatlett commented Sep 19, 2016

This fixes a very major ACSF issue where site-specific ACSF settings.inc template provided by the ACSF module are overridden in BLT - this caused ACSF sites in each environment to share a single, incorrect database and prevented the successful creation of new sites in some instances.

@grasmash grasmash merged commit 0d1bbe4 into acquia:8.x Sep 19, 2016
@grasmash grasmash added the Bug Something isn't working label Sep 19, 2016
@@ -83,7 +83,7 @@
/**
* Acquia Cloud settings.
*/
if ($is_ah_env && file_exists('/var/www/site-php')) {
if ($is_ah_env && file_exists('/var/www/site-php' && !$is_acsf)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@grasmash & @lcatlett
Should this be:

if (($is_ah_env && !$is_acsf) && file_exists('/var/www/site-php')) {

This line seems like it wouldn't work file_exists('/var/www/site-php' && !$is_acsf)?

cc: @rjgwiz

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does work when deployed to ACSF, but your logic makes more sense

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can submit a PR, just wanted to make sure it wasn't intentional. I assume this works on ACSF b/c the file_exists() command returns false (maybe?), but this would then not run correctly on ACE, I believe.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh yeah I missed that. @dpagini I like the look of your suggestion better.

dpagini added a commit to dpagini/blt that referenced this pull request Sep 20, 2016
Per a [discussion](acquia#418 (comment)) on PR#418, changing this IF statement a little. I think it makes sense to keep the secrets location on ACSF and ACE, as we do use this approach on ACE.
grasmash pushed a commit that referenced this pull request Sep 20, 2016
Per a [discussion](#418 (comment)) on PR#418, changing this IF statement a little. I think it makes sense to keep the secrets location on ACSF and ACE, as we do use this approach on ACE.
@lcatlett lcatlett deleted the acsf-db branch November 10, 2018 18:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants