Commando's
Database commando's
ddev export-db --file=db.sql.gz
ddev import-db --file=db.sql.gz
ddev import-db --database=olv --file=ID73339_olvbe.sql.gz
ddev debug migrate-database mysql:8.0
Update DDEV (in Windows - WSL2)
# Update package information and ddev packages
sudo apt-get update && sudo apt-get install --only-upgrade ddev ddev-wsl2
Algemene commando's
ddev nvm user
ddev start
ddev stop
ddev stop -a
ddev delete
ddev describe
ddev auth ssh
ddev logs
ddev launch -m (mailhog:)
ddev launch -p (phpmyadmin)
ddev restart
ddev php -i
ddev php -m | grep memprof
ddev export-db --file=db.sql.gz
ddev import-db --file=db.sql.gz
ddev config //configures a project’s type and docroot.
ddev start //starts up a project.
ddev launch //opens a web browser showing the project.
ddev list //shows current projects and their state.
ddev describe //gives all the info about the current project.
ddev ssh //takes you into the web container.
ddev exec <command> //executes a command inside the web container.
ddev stop //stops a project and removes its memory usage (but does not throw away any data).
ddev poweroff //stops all resources that DDEV is using and stops the Mutagen daemon if it’s running.
ddev delete //destroys the database and DDEV’s knowledge of the project without touching to your code.
xdebug opzetten
ddev exec php -v
-> als hier niets staat over xdebug dan staat het nog niet op.
ddev xdebug on
bestand: .ddev/php/xdebug.ini
daarin:
xdebug.mode=debug,develop,profile
xdebug.start_with_request=yes
xdebug.client_host=host.docker.internal
xdebug.client_port=9003
daarna:
ddev restart