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

Acquia Cloud does not support hyphens in db names #86

Open
ssu-carlsoni opened this issue Apr 2, 2024 · 1 comment
Open

Acquia Cloud does not support hyphens in db names #86

ssu-carlsoni opened this issue Apr 2, 2024 · 1 comment

Comments

@ssu-carlsoni
Copy link
Contributor

$site_name = str_replace('.', '_', $site_name);

@ssu-carlsoni
Copy link
Contributor Author

ssu-carlsoni commented Apr 2, 2024

While moving to Acquia Recommended Settings we had an issue with one of our multisites with a hyphen in the domain. Example: childrens-school.domain.edu

We addressed in the sites settings.php file via the following

// Acquia Recommended Settings - does not support hyphens in site names
if (EnvironmentDetector::isAhEnv()) {
  $site_settings_file = FilePaths::ahSettingsFile(EnvironmentDetector::getAhGroup(), 'childrens_school');
  if (file_exists($site_settings_file)) {
    require_once $site_settings_file;
  }
}

I think FilePaths::ahSettingsFile should be updated to support this configuration.

danepowell added a commit that referenced this issue Jun 27, 2024
* Replace hyphen with underscore in ahSettingsFile (#86)

* simplified str_replace using needle array suggested by danepowell (#86)

Co-authored-by: Dane Powell <[email protected]>

* Code style

---------

Co-authored-by: Dane Powell <[email protected]>
Co-authored-by: Dane Powell <[email protected]>
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

1 participant