diff --git a/commands/env-init.cmd b/commands/env-init.cmd index b5164ef4..7a3c80d2 100644 --- a/commands/env-init.cmd +++ b/commands/env-init.cmd @@ -154,3 +154,24 @@ if [[ "${WARDEN_ENV_TYPE}" =~ ^symfony|shopware$ ]]; then VARNISH_VERSION=6.0 EOT fi + +if [[ "${WARDEN_ENV_TYPE}" == "wordpress" ]]; then + cat >> "${WARDEN_ENV_PATH}/.env" <<-EOT + + MARIADB_VERSION=10.4 + NODE_VERSION=10 + PHP_VERSION=7.4 + + WARDEN_DB=1 + + APP_ENV=local + APP_DEBUG=true + + DB_CONNECTION=mysql + DB_HOST=db + DB_PORT=3306 + DB_DATABASE=wordpress + DB_USERNAME=wordpress + DB_PASSWORD=wordpress + EOT +fi diff --git a/commands/env-init.help b/commands/env-init.help index e97ba50d..c92412bd 100755 --- a/commands/env-init.help +++ b/commands/env-init.help @@ -30,5 +30,8 @@ WARDEN_USAGE=$(cat <