-
Notifications
You must be signed in to change notification settings - Fork 30
Applied nci_meo_code_changes_nov04.patch for MEO switch #5027
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
base: develop
Are you sure you want to change the base?
Conversation
|
|
||
| // Check if site_env matches a prod environment name... | ||
| if (in_array($site_env, self::PROD_AH_SITE_ENVS) || | ||
| preg_match('/^.*(www-prod-acsf|www-cms).*$/', $site_env)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jfrank-nih -- I don't think this is something that should have been changed... But also, why is only this here?
docroot/sites/default/settings.php
Outdated
| if (isset($_ENV['AH_ENVIRONMENT_TYPE']) && $_ENV['AH_ENVIRONMENT_TYPE'] === 'meo') { | ||
| $settingsFiles = [ | ||
| DRUPAL_ROOT . '/sites/settings/pre_includes.php', | ||
| DRUPAL_ROOT . '/sites/settings/post_includes.php', | ||
| DRUPAL_ROOT . '/sites/settings/post_memcache.php', | ||
| DRUPAL_ROOT . '/sites/settings/post_new_relic.php' | ||
| ]; | ||
| foreach ($settingsFiles as $settingsFile) { | ||
| if (file_exists($settingsFile)) { | ||
| // phpcs:ignore | ||
| require $settingsFile; | ||
| } | ||
| } | ||
| return; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 things:
- The folder location means they are getting loaded in global.settings.php
- These probably come first
- We need to plot the order again of all the includes.
- Return? Really? So are we skipping our config settings?
| // ===== Added by acsf-init, please do not delete. Section end. ===== | ||
| } | ||
|
|
||
| // @codingStandardsIgnoreFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also a little silly.
| if ($_ENV['AH_ENVIRONMENT_TYPE'] === 'meo') { | ||
| switch ($env) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is messy. We should re-work this so it is just 1 switch. Maybe just fake the meo environment names...
But also, what in here is NOT going to get the max_age? Maybe we negate this whole thing. It looks like this is just for the everything but the local env.
(NOW, it USED to have different settings, but I think changes there make this no longer valid.)
278f57f to
aad3bb5
Compare
|
Based on discussions with Acquia we no longer need: Settings
We also cleaned up the settings.php file to make it simpler Hooks / Factory Hooks
|
aad3bb5 to
23b0c32
Compare
| if (isset($_acsf_site_name)) { | ||
| $settings['file_public_path'] = "sites/default/files/$_acsf_site_name"; | ||
| $settings['file_private_path'] = "$repo_root/files-private/$_acsf_site_name"; | ||
| if (isset($_meo_site_name)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thoughtI removed all the meo junk and I, well, half did. We should fully do this...
ODE DeploymentCode has been deployed to ODE 1046. |
7ab1f78 to
5fce808
Compare
| // Include Acquia sites.inc | ||
| if (file_exists('/var/www/site-php')) { | ||
| // phpcs:ignore | ||
| require '/var/www/site-php/' . $_ENV['AH_SITE_GROUP'] . '/' . $_ENV['AH_SITE_GROUP'] . '-sites.inc'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfrank-nih - How do we want to manage this file? We talked about not just splatting the path-based domain $sites array before your variable you made for the default domain. Right now it has both mushed together.
- Only make $sites run for MEO - Removed $_meo_site_name settings for the DB as they are not needed. - Removed copy of 000-acquia_required_scrub conversion to MEO as it is not needed in this form. (Which calls ACSF) - Cleaned up "hooks" for site install and meo post-code-deploy. - Removed post_memcache.php, post_new_relic.php, and pre_includes.php. - Cleaned up settings.php to not load different settings if MEO or not. Settings had a block added by ACSF that failed fast and skipped a few of the settings. This was replicated in the MEO conversion, because it was in the ACSF config, but it was more of an acsf module opinion. - Setup an isMEO test in our settings helper, as well as prefixed meo environment names to match BLT names in order to avoid confusion with ACE names. - Cleaned up caching max_age block rewire to be MUCH simpler as we were listing every Acquia environment in a switch block and setting the max_age to the same value. This all was in a test for being in Acquia. So it was really pointless to have all the switches and tests. - Cleaned up how config_directories are set up - just added to settings instead of post-settings.php. - Don't print meo deployment and install scripts on processing. (e.g., no set -v) - www-prod-acsf tests were removed from CgovCoreTools in the patch and needed to be added back in.
5fce808 to
3225f57
Compare
…nly place we copy db). It would trigger on MEO though.
…luded: - Defaulting users file in blt.yml to use Acquia env vars, which also allowed us to remove meo-specific configs.
3225f57 to
a816ce3
Compare
No description provided.