Commit 1fd83aab authored by Benji Fisher's avatar Benji Fisher

Merge branch '23-do-not-clear-out-files-before-installing-drupal-with-drush' into 'master'

Resolve "Do not clear out files before installing Drupal with drush"

Closes #23

See merge request !15
parents 6a1f99c5 2e5ded7b
......@@ -19,8 +19,7 @@ services:
build:
- cd drupal && composer install
run:
- echo "Clearing out user files from the Drupal site."
- rm -rf /app/drupal/web/sites/default/files
- echo "Install Drupal with drush."
- cd drupal/web && drush --yes site:install demo_umami --db-url=mysql://drupal8:drupal8@database:3306/drupal8 --account-pass=admin --site-name='Drupal-Gatsby'
- cd drupal/web && drush --yes pm:enable jsonapi
- cd drupal/web && drush --yes pm:uninstall contact
......
......@@ -728,7 +728,6 @@ $settings['container_yamls'][] = $app_root . '/' . $site_path . '/services.yml';
* will allow the site to run off of all variants of example.com and
* example.org, with all subdomains included.
*/
$settings['trusted_host_patterns'] = ['\.lndo\.site$'];
/**
* The default list of directories that will be ignored by Drupal's file API.
......@@ -774,7 +773,7 @@ $settings['entity_update_backup'] = TRUE;
*
* Keep this code block at the end of this file to take full effect.
*/
#
# if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
# include $app_root . '/' . $site_path . '/settings.local.php';
# }
if (file_exists($app_root . '/' . $site_path . '/settings.local.php')) {
include $app_root . '/' . $site_path . '/settings.local.php';
}
<?php
$settings['trusted_host_patterns'] = ['\.lndo\.site$'];
/**
* Skip file system permissions hardening.
*
* The system module will periodically check the permissions of your site's
* site directory to ensure that it is not writable by the website user. For
* sites that are managed with a version control system, this can cause problems
* when files in that directory such as settings.php are updated, because the
* user pulling in the changes won't have permissions to modify files in the
* directory.
*/
$settings['skip_permissions_hardening'] = TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment