Commit 9be1f942 authored by Benji Fisher's avatar Benji Fisher

16: Make 'lando rebuild' more reliable

Before reinstalling Drupal, clear out the public files. This directory
caused permission errors for some reason.

Uninstall the contact module. With this module enabled, there are some
links on https://drupal.lgd.lndo.site/jsonapi that, when followed, give
404 errors or similar.

These errors broke the Gatsby build.
parent 6080835d
......@@ -20,8 +20,11 @@ services:
build:
- cd drupal && composer install
run:
- echo "Clearing out user files from the Drupal site."
- rm -rf /app/drupal/web/sites/default/files
- 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
nodejs:
type: node
ssl: 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