Skip to content

Conversation

@jheinon2021
Copy link

@jheinon2021 jheinon2021 commented Oct 30, 2025

Rollout - Lando to DDEV upgrade documentation

original document - Rollout - Lando to DDEV upgrade documentation

Changes

  • Added Rollout - Lando to DDEV upgrade documentation to the project template.
  • Added docs folder and enhanced documentation structure in Drupal template project.
  • The newly added docs folder has an index README.md.
  • Changed addBadDataProvider and addDataProvider to be static functions.

Testing

https://app.circleci.com/pipelines/github/wunderio/drupal-project?branch=feature%2FDDEV-documentation

Enviroment: [Feature environment URL]

Login: [drush uli command]

Instructions:

  • [Step by step instructions to test the changes]

@jheinon2021 jheinon2021 requested review from Copilot and tormi October 30, 2025 14:00
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive documentation for upgrading from Lando to DDEV as the local development environment for Wunder's Drupal projects.

  • Introduces a new upgrade guide covering DDEV installation, project setup, and migration of Lando tooling to DDEV commands
  • Creates a documentation index to organize project documentation
  • Updates the main README to reference the new documentation

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 9 comments.

File Description
docs/rollout-lando-to-ddev-upgrade.md Complete migration guide with installation instructions, project setup steps, and command conversion examples
docs/README.md New documentation index page listing available upgrade guides
README.md Adds reference to docs/README.md for upgrade guides and documentation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +17 to +28
sudo sh -c 'echo ""'
sudo apt-get update && sudo apt-get install -y curl
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://pkg.ddev.com/apt/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/ddev.gpg > /dev/null
sudo chmod a+r /etc/apt/keyrings/ddev.gpg

# Add DDEV releases to your package repository
sudo sh -c 'echo ""'
echo "deb [signed-by=/etc/apt/keyrings/ddev.gpg] https://pkg.ddev.com/apt/ * *" | sudo tee /etc/apt/sources.list.d/ddev.list >/dev/null

# Update package information and install DDEV
sudo sh -c 'echo ""'
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These sudo sh -c 'echo \"\"' commands on lines 17, 24, and 28 appear to serve no functional purpose. They echo empty strings and should be removed to improve clarity and reduce confusion in the installation instructions.

Suggested change
sudo sh -c 'echo ""'
sudo apt-get update && sudo apt-get install -y curl
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://pkg.ddev.com/apt/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/ddev.gpg > /dev/null
sudo chmod a+r /etc/apt/keyrings/ddev.gpg
# Add DDEV releases to your package repository
sudo sh -c 'echo ""'
echo "deb [signed-by=/etc/apt/keyrings/ddev.gpg] https://pkg.ddev.com/apt/ * *" | sudo tee /etc/apt/sources.list.d/ddev.list >/dev/null
# Update package information and install DDEV
sudo sh -c 'echo ""'
sudo apt-get update && sudo apt-get install -y curl
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://pkg.ddev.com/apt/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/ddev.gpg > /dev/null
sudo chmod a+r /etc/apt/keyrings/ddev.gpg
# Add DDEV releases to your package repository
echo "deb [signed-by=/etc/apt/keyrings/ddev.gpg] https://pkg.ddev.com/apt/ * *" | sudo tee /etc/apt/sources.list.d/ddev.list >/dev/null
# Update package information and install DDEV

Copilot uses AI. Check for mistakes.
```shell
# Download and run the install script
curl -fsSL https://ddev.com/install.sh | bash
ddev start
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ddev start command appears out of context here. It should not be part of the installation script section, as it requires a configured project directory. Consider removing this line or clarifying that it's a separate step to be run after project configuration.

Suggested change
ddev start

Copilot uses AI. Check for mistakes.
## 2. Setting up the DDEV for a project

#### Set up the DDEV for your project.
Setting up the DDEV for your project as a local development environment is a little trickier than the installation. Ensure the root of your actual Drupal project, as depending on the project, it might not be in the actual root of the project, but, e.g., in a subdirectory called `drupal/`.
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence is grammatically incorrect. 'Ensure the root' should be 'Ensure you're in the root' or 'Locate the root'.

Suggested change
Setting up the DDEV for your project as a local development environment is a little trickier than the installation. Ensure the root of your actual Drupal project, as depending on the project, it might not be in the actual root of the project, but, e.g., in a subdirectory called `drupal/`.
Setting up the DDEV for your project as a local development environment is a little trickier than the installation. Ensure you're in the root of your actual Drupal project, as depending on the project, it might not be in the actual root of the project, but, e.g., in a subdirectory called `drupal/`.

Copilot uses AI. Check for mistakes.
1. To commence, `cd` into the existing project directory. Ensure that you’re in the actual Drupal root, as this might not always be the root of the project.
2. Run `ddev config` to initialize a DDEV project.
3. Run `ddev start` to spin up the project.
4. Run `ddev launch` to launch the project in a web browser. This is the same command as `lando start` in Lando environment.
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This statement is incorrect. The documentation states that ddev launch is the same as lando start, but ddev launch opens a web browser while lando start starts the environment. The correct equivalent to lando start is ddev start, not ddev launch.

Suggested change
4. Run `ddev launch` to launch the project in a web browser. This is the same command as `lando start` in Lando environment.
4. (Optional) Run `ddev launch` to open the project in a web browser.

Copilot uses AI. Check for mistakes.
Comment on lines 69 to 70
img 2 goes here

Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placeholder text for images should be replaced with actual images or removed before finalizing the documentation.

Suggested change
img 2 goes here

Copilot uses AI. Check for mistakes.
Comment on lines 81 to 82
img 3 goes here

Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placeholder text for images should be replaced with actual images or removed before finalizing the documentation.

Suggested change
img 3 goes here

Copilot uses AI. Check for mistakes.

In order for you to integrate these to DDEV environment, you just need to copy the sh-files from the lando folder to your DDEV commands folder. Please take a look at the next 2 screenshots from Raisio project:

img 4 goes here
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placeholder text for images should be replaced with actual images or removed before finalizing the documentation.

Suggested change
img 4 goes here

Copilot uses AI. Check for mistakes.
### 3.2 sh-files in Lando and in DDEV
In Lando projects, there might be custom sh or bash files that contain custom commands to perform different actions, e.g. database synchronisation from the cloud environment.

In order for you to integrate these to DDEV environment, you just need to copy the sh-files from the lando folder to your DDEV commands folder. Please take a look at the next 2 screenshots from Raisio project:
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase 'integrate these to DDEV environment' is grammatically incorrect. It should be 'integrate these into the DDEV environment' or 'integrate these with the DDEV environment'.

Suggested change
In order for you to integrate these to DDEV environment, you just need to copy the sh-files from the lando folder to your DDEV commands folder. Please take a look at the next 2 screenshots from Raisio project:
In order for you to integrate these into the DDEV environment, you just need to copy the sh-files from the lando folder to your DDEV commands folder. Please take a look at the next 2 screenshots from Raisio project:

Copilot uses AI. Check for mistakes.
drush search-api:rebuild-tracker

# # Index all search items.
drush search-api:index
Copy link

Copilot AI Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is trailing whitespace at the end of line 159. This should be removed for consistency.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants