- Issue created by @koffer
- 🇬🇧United Kingdom aaron.ferris
I also saw some issues setting ddev up in the flow you've described, I wonder if the issue is with configuring ddev before the project files are pulled down.
ddev:
1.mkdir my-localgov-site
2.cd my-localgov-site
3.composer create localgovdrupal/localgov-project
4. cd localgov-project
5.ddev config
6. Use defaults
7.ddev start
Perhaps ddev could be bundled in with the project alongside Lando?
- 🇳🇱Netherlands ekes
DDEV is offered in addition to Lando. The project mentioned `
composer create localgovdrupal/localgov-project
` includes https://github.com/localgovdrupal/localgov_project/tree/3.x/.ddev - 🇬🇧United Kingdom aaron.ferris
That would explain the issue in the OP, there's a mismatch in the ddev config thats pulled down and the config thats generated by ddev when creating a new project.
In which case, the flow should just be
1.
mkdir my-localgov-site
2.cd my-localgov-site
3.composer create localgovdrupal/localgov-project
4.cd localgov-project
5.ddev start
- 🇲🇽Mexico koffer
I thought there was no documentation on how to use this distribution with ddev, but I see that the documentation is very complete! I will add a link to the documentation in my issue, but anyway, maybe this issue is not so necessary.
- 🇩🇰Denmark ressa Copenhagen
Wouldn't it be better to use the Composer included in DDEV, as seen in the DDEV Drupal Quickstart? (and not require Composer on the host machine)
Something like this:
mkdir localgov && cd localgov ddev config --project-type=drupal --php-version=8.3 --docroot=web ddev start ddev composer create localgovdrupal/localgov-project ddev drush site:install localgov -y
Install the demo content, and generate a log in link:
ddev drush in localgov_demo -y ddev drush uli
Alternatively, if the
.ddev
folder and config from the project is needed, you can instead do this:git clone https://github.com/localgovdrupal/localgov_project localgov_git mkdir localgov cd localgov cp -r ../localgov_git/.ddev .
PS. I added LocalGov Drupal to the Drupal distributions page: https://www.drupal.org/docs/getting-started/drupal-distributions/localgo... →