Commit local DDEV configuration
This commit is contained in:
parent
fccb5d6a18
commit
b85e8082c3
17 changed files with 361 additions and 0 deletions
20
.ddev/commands/web/README.txt
Executable file
20
.ddev/commands/web/README.txt
Executable file
|
@ -0,0 +1,20 @@
|
|||
Scripts in this directory will be executed inside the web
|
||||
container. You can copy the example file or just rename it:
|
||||
`mv drush.example drush`, for example, and it will become
|
||||
a live command.
|
||||
|
||||
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
|
7
.ddev/commands/web/drush
Executable file
7
.ddev/commands/web/drush
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Description: Run drush inside the web container
|
||||
## Usage: drush [flags] [args]
|
||||
## Example: "ddev drush uli" or "ddev drush sql-cli" or "ddev drush --version"
|
||||
|
||||
drush $@
|
7
.ddev/commands/web/drush.example
Executable file
7
.ddev/commands/web/drush.example
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Description: Run drush inside the web container
|
||||
## Usage: drush [flags] [args]
|
||||
## Example: "ddev drush uli" or "ddev drush sql-cli" or "ddev drush --version"
|
||||
|
||||
drush $@
|
7
.ddev/commands/web/reload-nginx.example
Executable file
7
.ddev/commands/web/reload-nginx.example
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
## Description: Reload config for nginx and php-fpm inside web container
|
||||
## Usage: restart-nginx
|
||||
## Example: "ddev restart-nginx"
|
||||
|
||||
killall -HUP nginx php-fpm
|
Loading…
Add table
Add a link
Reference in a new issue