Local Development (DDEV)
Pre-steps
New Git repo:
- Initialize new
reporepo. - Take care that repo directory is empty, only .git should be
therethere. - Run:
ddev config --project-type=drupal11 --docroot=public_html ddev start ddev composer create drupal/recommended-project:^11 --no-install sed -i 's/web\//public_html\//' composer.json ddev composer install ddev composer require drush/drush ddev drush site:install --account-name=admin --account-pass=admin --locale=nl -y ddev launch $(ddev drush uli) UpdateWhen the website is launched, change the password if deemed necessary- gitignore stuff
Existing Repo:
- Clone the repo
- Verify composer.json
file:(web root = pubclic_html) - Run:
wddev config --project-type=drupal11 --docroot=public_html ddev start ddev composer install ddev drush site:install --account-name=admin --account-pass=admin --locale=nl -y ddev launch $(ddev drush uli)Sources:https://ddev.readthedocs.io/en/stable/users/quickstart/#drupal