TugboatQA / docs

Tugboat Docs
https://docs.tugboat.qa
MIT License
9 stars 18 forks source link

Remove symlink to config dir in Drupal example Tugboat configs #378

Closed q0rban closed 10 months ago

q0rban commented 10 months ago

We have some Tugboat config examples that create a symlink to the Drupal config dir. This is because the Drupal web root is symlinked into the apache web root, and the Drupal config may be outside of that Drupal web root. For example if the Drupal config is in /var/lib/tugboat/config and the Drupal web root is /var/lib/tugboat/web (which gets symlinked to /var/www/html aka $DOCROOT). When the webserver tries to find the config, it my look in /var/www/config which would not be correct.

Instead of using a symlink to resolve this problem, we should instead suggest adding this to settings.local.php:

$settings['config_sync_directory'] = getenv('TUGBOAT_ROOT') . '/config';