wunderio / ddev-drupal
Wunder的可扩展模板,用于DDEV Drupal项目。
0.3.0
2024-04-04 09:57 UTC
Requires
- composer-plugin-api: ^2.0
- drupal/core: ^8 || ^9 || ^10
Requires (Dev)
- composer/composer: ^2.0
- dev-main
- 0.3.0
- 0.2.0
- 0.1.1
- 0.1.0
- 0.0.1
- dev-feature/30-Integrate-vscode-and-PhpStorm
- dev-feature/16-run-config-import-updb-after-import
- dev-feature/6-Run-post-db-updates-after-snapshot-restore
- dev-feature/#19-Create-PR-template
- dev-feature/17-In-ddev-pmu-command-always-do-cr-before-drush-pmu
- dev-feature/14-Automatic-updates
- dev-feature/11-Create-syncdb-task-to-sync-wunder-production-db-to-local
- dev-feature/9-Create-wrapper-for-pmu-to-be-able-to-uninstall-modules-that-dont-exist-in-code
- dev-feature/7-update-grumphp-git-hook-from-lando-to-ddev-aware
- dev-feature/#7-update-grumphp-git-hook-from-lando-to-ddev-aware
- dev-feature/1-Create-initial-minimal-configuration
This package is auto-updated.
Last update: 2024-09-13 17:42:48 UTC
README
这是一个用于定义Drupal项目基本DDEV设置的模板。它包含了预定义的.ddev/config.wunderio.yaml文件和.ddev/dist文件夹,其中内容将被复制到您的项目根目录。
安装
-
初始化您的Drupal 10项目。项目名称参数是可选的,但建议使用域名作为项目名称,因为这将用于ddev.site的子域名,例如,如果项目名称是example.com,则localhost URL将变为example.com.ddev.site。
ddev config --project-type=drupal10 --docroot=web --project-name=example.com
-
使用DDEV安装wunderio/ddev-drupal Composer包,并重启DDEV
ddev composer require wunderio/ddev-drupal --dev && ddev restart
-
将更改添加到GIT(注意以下命令使用-p,所以如果它询问要提交什么,您需要回答“是”或“否”)
git add .ddev/ && git add drush/sites/ && git add composer.lock && git add -p composer.json web/sites/default/settings.php grumphp.yml && git commit
还请注意,每次您更新wunderio/ddev-drupal包时,您都需要将.ddev下的所有内容添加到GIT。
-
导入数据库
ddev import-db --file=some-sql-or-sql.gz.file.sql.gz
或安装站点
ddev drush si
-
创建管理员链接并登录
ddev drush uli