Commit all the ddev commands and home additions that are now there
This commit is contained in:
parent
9c3cdda643
commit
c262f7becd
14 changed files with 180 additions and 0 deletions
16
.ddev/commands/db/README.txt
Executable file
16
.ddev/commands/db/README.txt
Executable file
|
@ -0,0 +1,16 @@
|
|||
Scripts in this directory will be executed inside the db
|
||||
container. A number of environment variables are supplied to the scripts, including:
|
||||
|
||||
DDEV_APPROOT: file system location of the project on the host)
|
||||
DDEV_HOST_DB_PORT: Localhost port of the database server
|
||||
DDEV_HOST_WEBSERVER_PORT: Localhost port of the webserver
|
||||
DDEV_HOST_HTTPS_PORT: Localhost port for https on webserver
|
||||
DDEV_DOCROOT: Relative path from approot to docroot
|
||||
DDEV_HOSTNAME: Comma-separated list of FQDN hostnames
|
||||
DDEV_PHP_VERSION
|
||||
DDEV_WEBSERVER_TYPE: nginx-fpm, apache-fpm, apache-cgi
|
||||
DDEV_PROJECT_TYPE: drupal8, typo3, backdrop, wordpress, etc.
|
||||
DDEV_ROUTER_HTTP_PORT: Router port for http
|
||||
DDEV_ROUTER_HTTPS_PORT: Router port for https
|
||||
|
||||
More environment variables may be available, see https://github.com/drud/ddev/blob/52c7915dee41d4846f9f619520b726994c0372c5/pkg/ddevapp/ddevapp.go#L1006-L1030
|
9
.ddev/commands/db/mysql
Executable file
9
.ddev/commands/db/mysql
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
## #ddev-generated
|
||||
## Description: run mysql client in db container
|
||||
## Usage: mysql [flags] [args]
|
||||
## Example: "ddev mysql" or "ddev mysql -uroot -proot" or "echo 'SHOW TABLES;' | ddev mysql"
|
||||
## `ddev mysql --database=mysql -uroot -proot` gets you to the 'mysql' database with root privileges
|
||||
|
||||
mysql -udb -pdb $@
|
7
.ddev/commands/db/mysqldump.example
Executable file
7
.ddev/commands/db/mysqldump.example
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Description: run mysqldump in web container
|
||||
## Usage: mysqldump [flags] [args]
|
||||
## Example: "ddev mysqldump db" or "ddev mysqldump otherdb" or "ddev mysqldump db | gzip >db.sql.gz"
|
||||
|
||||
mysqldump -uroot -proot $@
|
Loading…
Add table
Add a link
Reference in a new issue