chore: cleanup ddev config
This commit is contained in:
1 parent
1a7c272414
commit
ca4a73eb4f
1 file changed
+4
-11
+4
-11
@@ -1,4 +1,4 @@
|
|||||||
type: php
|
type: symfony
|
||||||
docroot: public
|
docroot: public
|
||||||
php_version: "8.4"
|
php_version: "8.4"
|
||||||
webserver_type: apache-fpm
|
webserver_type: apache-fpm
|
||||||
@@ -9,15 +9,8 @@ database:
|
|||||||
type: mariadb
|
type: mariadb
|
||||||
version: "11.8"
|
version: "11.8"
|
||||||
hooks:
|
hooks:
|
||||||
# The agent hooks in config.codex-claude.yaml are merged with these, not replaced by them.
|
|
||||||
post-start:
|
post-start:
|
||||||
# ddev creates "db" alone, so the test database has to be created and granted here.
|
|
||||||
# Without it the first test run after a fresh start fails with "Access denied for user
|
|
||||||
# 'db'@'%' to database 'db_test'".
|
|
||||||
- exec: mysql -uroot -proot -hdb -e "CREATE DATABASE IF NOT EXISTS db_test CHARACTER SET utf8mb4; GRANT ALL ON db_test.* TO 'db'@'%';"
|
- exec: mysql -uroot -proot -hdb -e "CREATE DATABASE IF NOT EXISTS db_test CHARACTER SET utf8mb4; GRANT ALL ON db_test.* TO 'db'@'%';"
|
||||||
# Schema from the entity mapping, never from the migrations: the squashed history is not
|
|
||||||
# replayable from an empty database (Version20260824124850 alters a table that
|
|
||||||
# Version20260901090029 only creates later). No fixtures - a test persists its own rows.
|
|
||||||
- exec: php bin/console doctrine:schema:update --force --env=test --no-interaction
|
- exec: php bin/console doctrine:schema:update --force --env=test --no-interaction
|
||||||
omit_containers: [ddev-ssh-agent]
|
omit_containers: [ddev-ssh-agent]
|
||||||
use_dns_when_possible: true
|
use_dns_when_possible: true
|
||||||
@@ -28,9 +21,6 @@ nodejs_version: "18"
|
|||||||
corepack_enable: false
|
corepack_enable: false
|
||||||
disable_upload_dirs_warning: true
|
disable_upload_dirs_warning: true
|
||||||
|
|
||||||
xhgui_https_port: "8142"
|
|
||||||
xhgui_http_port: "8143"
|
|
||||||
|
|
||||||
# Key features of DDEV's config.yaml:
|
# Key features of DDEV's config.yaml:
|
||||||
|
|
||||||
# name: <projectname> # Name of the project, automatically provides
|
# name: <projectname> # Name of the project, automatically provides
|
||||||
@@ -318,3 +308,6 @@ xhgui_http_port: "8143"
|
|||||||
# information on the commands that can be extended and the tasks you can define
|
# information on the commands that can be extended and the tasks you can define
|
||||||
# for them. Example:
|
# for them. Example:
|
||||||
#hooks:
|
#hooks:
|
||||||
|
## Un-comment to consume async message.
|
||||||
|
# post-start:
|
||||||
|
# - exec: symfony run --daemon --watch=config,src,templates,vendor bin/console messenger:consume async -vv
|
||||||
Reference in new issue
Block a user