Skip to content

Commit

Permalink
ACMS-3658: Issue fixed of incorrect directory being created on CloudIDE.
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkhode1 committed Mar 19, 2024
1 parent 1c71ee1 commit fccd9be
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Drush/Commands/SettingsDrushCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Acquia\Drupal\RecommendedSettings\Drush\Commands;

use Acquia\Drupal\RecommendedSettings\Common\RandomString;
use Acquia\Drupal\RecommendedSettings\Drush\Traits\SiteUriTrait;
use Acquia\Drupal\RecommendedSettings\Exceptions\SettingsException;
use Acquia\Drupal\RecommendedSettings\Settings;
use Consolidation\AnnotatedCommand\Hooks\HookManager;
Expand All @@ -16,6 +17,8 @@
*/
class SettingsDrushCommands extends BaseDrushCommands {

use SiteUriTrait;

/**
* Command name for settings.php generation.
*/
Expand Down Expand Up @@ -58,7 +61,8 @@ public function initSettings(array $options = [
'port' => $options['port'],
];
try {
$settings = new Settings($this->getConfigValue("docroot"), $this->getConfigValue("drush.uri"));
$site_directory = $this->getSitesSubdirFromUri($this->getConfigValue("docroot"), $this->getConfigValue("drush.uri"));
$settings = new Settings($this->getConfigValue("docroot"), $site_directory);
$settings->generate($db);
if (!$this->output()->isQuiet()) {
$this->print(
Expand Down

0 comments on commit fccd9be

Please sign in to comment.