wunderio / ddev-drupal

Work in progress of template for DDEV Drupal projects
0 stars 0 forks source link

Feature/1 create initial minimal configuration #2

Closed hkirsman closed 4 months ago

hkirsman commented 7 months ago

Testing

  1. Initialize your Drupal 10 project. Project name parameter is optional, but it's advisable to use domain name as your project name as that's used for for the subdomain of ddev.site eg if project name is example.com, then localhost URL will become example.com.ddev.site.
ddev config --project-type=drupal10 --project-name=example.com
  1. Start DDEV.
ddev start
  1. Install the composer package:
ddev composer require wunderio/ddev-drupal:dev-feature/1-Create-initial-minimal-configuration --dev
  1. Restart ddev
ddev restart
  1. Import db
ddev import-db --file=some-sql-or-sql.gz.file.sql.gz
  1. Use drush uli to log in to your site

    ddev drush uli
  2. Add changes to GIT.

    git add .ddev composer.json composer.lock drush/sites/local.site.yml

Todo?

  1. Add some kind of testing script that would install https://github.com/wunderio/drupal-project , require this branch, run some commands and check that these are not failing.
  2. Add docs on how to switch Code Quality tool to run in DDEV.