Skip to content
Snippets Groups Projects
Commit dab27bce authored by jurgenhaas's avatar jurgenhaas
Browse files

Make sure that docker settings are included in Drupal settings

parent 92c2b698
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,14 @@ class Handler {
$fs->chmod($file, 0664);
}
// Make sure that settings.docker.php gets called from settings.php
$settingsPhpFile = $webRoot . '/sites/default/settings.php';
$settingsPhp = file_get_contents($settingsPhpFile);
if (strpos($settingsPhp, 'settings.docker.php') === FALSE) {
$settingsPhp .= "\n\nif (file_exists(__DIR__ . '/settings.docker.php')) {include __DIR__ . '/settings.docker.php';}\n";
file_put_contents($settingsPhpFile, $settingsPhp);
}
// Initialize local git working copy
try {
$this->git('ignore docker-compose.yml');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment