Skip to content

Quoute title parameter to avoid error on whitespace title content. #1

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
16 changes: 8 additions & 8 deletions docker-compose-onlinehost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.6'
services:

wordpress:
image: wordpress:latest
image: wordpress:${WORDPRESS_VERSION:-latest}
container_name: ${COMPOSE_PROJECT_NAME:-wordpress}
volumes:
- ./config/php.conf.ini:/usr/local/etc/php/conf.d/php.ini
Expand All @@ -25,7 +25,7 @@ services:
- phpmyadmin
restart: always
networks:
- ${COMPOSE_PROJECT_NAME}_default
- wordpress-default
- nginx-proxy

# Redirect non-www to www
Expand All @@ -43,7 +43,7 @@ services:
- REDIRECT=https://www.change-me-with-your-domain.com
- WORKER_CONNECTIONS=1024
networks:
- ${COMPOSE_PROJECT_NAME}_default
- wordpress-default
- nginx-proxy


Expand All @@ -59,7 +59,7 @@ services:
- MYSQL_DATABASE=${COMPOSE_PROJECT_NAME:-wordpress}
restart: always
networks:
- ${COMPOSE_PROJECT_NAME}_default
- wordpress-default

phpmyadmin:
depends_on:
Expand All @@ -78,7 +78,7 @@ services:
- LETSENCRYPT_EMAIL=${WORDPRESS_ADMIN_EMAIL}
- VIRTUAL_PORT=80
networks:
- ${COMPOSE_PROJECT_NAME}_default
- wordpress-default
- nginx-proxy

# Command line interface to wordpress
Expand All @@ -90,7 +90,7 @@ services:
- ${WORDPRESS_DATA_DIR:-./wordpress}:/var/www/html
working_dir: /var/www/html
networks:
- ${COMPOSE_PROJECT_NAME}_default
- wordpress-default

# Check availability of essential services
healthcheck:
Expand All @@ -106,10 +106,10 @@ services:
- WAIT_SLEEP_INTERVAL=${WAIT_SLEEP_INTERVAL:-30}
- WAIT_HOST_CONNECT_TIMEOUT=${WAIT_HOST_CONNECT_TIMEOUT:-30}
networks:
- ${COMPOSE_PROJECT_NAME}_default
- wordpress-default

networks:
wordpress_default:
wordpress-default:
name: ${COMPOSE_PROJECT_NAME}_default
nginx-proxy:
external:
Expand Down
2 changes: 1 addition & 1 deletion wpcli/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ configure:
@echo "⚙️ Configuring Wordpress parameters..."
wp core install \
--url=${WORDPRESS_WEBSITE_URL_WITHOUT_HTTP} \
--title=$(WORDPRESS_WEBSITE_TITLE) \
--title="$(WORDPRESS_WEBSITE_TITLE)" \
--admin_user=${WORDPRESS_ADMIN_USER} \
--admin_password=${WORDPRESS_ADMIN_PASSWORD} \
--admin_email=${WORDPRESS_ADMIN_EMAIL}
Expand Down