Setup local development stack using DDEV

Created on 16 November 2023, about 1 year ago

Problem/Motivation

It's painful to set up a site properly for testing purposes. Let's automate that with DDEV.

Proposed resolution

Use DDEV and ddev-drupal-contrib to set up a site seamlessly and tear it down.

📌 Task
Status

Fixed

Version

1.0

Component

Miscellaneous

Created by

🇨🇦Canada hussainweb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @hussainweb
    • hussainweb committed 96c3b56c on 8.x-1.x
      Issue #3402188 by hussainweb: Setup local development stack using DDEV
      
  • Status changed to Fixed about 1 year ago
  • 🇨🇦Canada hussainweb

    Updated 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:

    ./setup_dev.sh drupal9
    

    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.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024