Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added in wordpress for environment type #206

Merged
merged 1 commit into from
Aug 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions commands/env-init.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions commands/env-init.help
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@ WARDEN_USAGE=$(cat <<EOF
pre-configured for running Symfony 4+
Due to the fact that Symfony uses `.env` file too,
WEBROOT value of `/web/` is used by default

wordpress Nginx, php-fpm, db
pre-configured for running Wordpress
EOF
)
8 changes: 8 additions & 0 deletions environments/wordpress/db.base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: "3.5"
services:
db:
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-wordpress}
- MYSQL_DATABASE=${MYSQL_DATABASE:-wordpress}
- MYSQL_USER=${MYSQL_USER:-wordpress}
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-wordpress}
5 changes: 5 additions & 0 deletions environments/wordpress/wordpress.base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: "3.5"
services:
nginx:
environment:
- NGINX_PUBLIC=/