Skip to content

Commit

Permalink
Connects to #678: Set config sync dir correctly, despite ACE defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Apr 3, 2017
1 parent 8281756 commit f0fca9b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
16 changes: 1 addition & 15 deletions phing/tasks/setup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -250,21 +250,7 @@
<param>config_split</param>
</drush>

<!-- Only import config if it exists. -->
<if>
<and>
<isset property="env.AH_SITE_ENVIRONMENT"/>
</and>
<then>
<drush command="config-import" assume="yes" alias="${drush.alias}">
<!-- Cloud environments require vcs parameter. -->
<param>vcs</param>
</drush>
</then>
<else>
<drush command="config-import" assume="yes" alias="${drush.alias}"></drush>
</else>
</if>
<drush command="config-import" assume="yes" alias="${drush.alias}"></drush>

</then>
</if>
Expand Down
6 changes: 6 additions & 0 deletions settings/config.settings.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

// Configuration directories.
$dir = dirname(DRUPAL_ROOT);
$config_directories['sync'] = $dir . "/config/$site_dir";

// Ensure the appropriate config split is enabled.
$config['config_split.config_split.local']['status'] = FALSE;
$config['config_split.config_split.dev']['status'] = FALSE;
Expand All @@ -16,6 +20,8 @@
}
}
else {
$config_directories['vcs'] = $config_directories['sync'];

if ($is_ah_dev_env) {
$config['config_split.config_split.dev']['status'] = TRUE;
}
Expand Down
4 changes: 0 additions & 4 deletions settings/default.local.settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
),
);

// Configuration directories.
$dir = dirname(DRUPAL_ROOT);
$config_directories['sync'] = $dir . "/config/$site_dir";

// Use development service parameters.
$settings['container_yamls'][] = $dir . '/docroot/sites/development.services.yml';

Expand Down

0 comments on commit f0fca9b

Please sign in to comment.