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

Write some development specific files only outside of CI context

parent 596dff2a
No related branches found
No related tags found
No related merge requests found
......@@ -97,12 +97,16 @@ class Handler extends BaseHandler {
$options['hash'] = str_replace(['+', '/', '='], ['-', '_', ''], base64_encode(random_bytes(55)));
$twig_loader = new \Twig_Loader_Array([]);
$twig = new \Twig_Environment($twig_loader);
foreach ([
$settings_files = [
'settings.php',
'services.yml',
'development.services.yml',
'settings.local.php',
] as $template) {
];
if (!$this->isCiContext()) {
$settings_files[] = 'settings.local.php';
$settings_files[] = 'development.services.yml';
}
foreach ($settings_files as $template) {
$file = $projectRoot . '/settings/default/' . $template;
$link = $webRoot . '/sites/default/' . $template;
if (!$fs->exists($link)) {
......
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