Closed (fixed)
Project:
Taarikh
Version:
8.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2023 at 16:39 UTC
Updated:
30 Nov 2023 at 16:49 UTC
Jump to comment: Most recent
It's painful to set up a site properly for testing purposes. Let's automate that with DDEV.
Use DDEV and ddev-drupal-contrib to set up a site seamlessly and tear it down.
Comments
Comment #3
hussainwebUpdated README with instructions.
We use DDEV to work on this module. The DDEV configuration is ignored from git for two reasons:
1. It's unnecessary.
2. It locks in the Drupal version.
Instead, we'll use a script to set up the development environment. Fortunately, [ddev-drupal-contrib](https://github.com/ddev/ddev-drupal-contrib) makes this very easy for us. The steps mentioned there are scripted in `./setup_dev.sh` and some more. The script also lets you specify the Drupal version to use (corresponds to DDEV recipes: `drupal8`, `drupal9`, and `drupal10` as of right now). It also copies a settings.local.php and modifies settings.php to have it take effect.
Usage:
This will set up a DDEV site at the address https://taarikh-drupal9.ddev.site (if you have cloned this repo in a directory called `taarikh`). Now you can install the site and happy testing.