-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed default directory config sync path with global settings
- Loading branch information
Showing
2 changed files
with
29 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
use Acquia\Blt\Robo\Common\EnvironmentDetector; | ||
|
||
/** | ||
* This can be overridden for individual sites. Add or modify this value in | ||
* `docroot/sites/{site-name}/settings/includes.settings.php` for the respective | ||
* site. See related information below. | ||
*/ | ||
$settings['config_sync_directory'] = DRUPAL_ROOT . '/profiles/custom/stanford_profile/config/sync'; | ||
|
||
// When the encryption environment variable is not provided (local/ci/etc), | ||
// fake the encryption string so that the site doesn't break. | ||
if (!getenv('STANFORD_ENCRYPT')) { | ||
putenv("STANFORD_ENCRYPT=" . substr(file_get_contents("$repo_root/salt.txt"), 0, 32)); | ||
} | ||
|
||
/** | ||
* An example global include file. | ||
* | ||
* To use this file, rename to global.settings.php. | ||
*/ | ||
|
||
$settings['file_temp_path'] = '/tmp'; | ||
|
||
if (EnvironmentDetector::isAhEnv()) { | ||
// Set the temp directory as per https://docs.acquia.com/acquia-cloud/manage/files/broken/ | ||
$settings['file_temp_path'] = '/mnt/gfs/' . EnvironmentDetector::getAhGroup() . '.' . EnvironmentDetector::getAhEnv() . '/tmp'; | ||
} |