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

Make webRoot dynamic

parent 5b26dd0f
No related branches found
Tags v3.1.2
No related merge requests found
Pipeline #
......@@ -109,9 +109,10 @@ class Handler {
$settingsPath = 'settings/default';
}
// Link Drupal site's settings files
// Provide all the requiired files
$twig_loader = new \Twig_Loader_Array([]);
$twig = new \Twig_Environment($twig_loader);
$options['webRoot'] = $webRoot . '/';
foreach ($this->getFiles($projectRoot, $webRoot, $settingsPath) as $template => $def) {
$file = $def['dest'] . '/' . $template;
if (!$fs->exists($file)) {
......
......@@ -29,7 +29,7 @@ services:
- php
environment:
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html/web/
NGINX_SERVER_ROOT: /var/www/html/{{ webRoot }}
volumes:
- ./:/var/www/html
labels:
......
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