implemented multisite
This commit is contained in:
@@ -1,8 +1,2 @@
|
||||
WORDPRESS_TITLE=
|
||||
WORDPRESS_SITEURL=
|
||||
WORDPRESS_HOME=
|
||||
|
||||
WORDPRESS_DB_NAME=
|
||||
|
||||
WP_THEMES=
|
||||
WP_PLUGINS=
|
||||
WORDPRESS_SITE_2_SLUG=
|
||||
WORDPRESS_SITE_2_TITLE=
|
||||
348444
chihounds/data/chicagohounds.WordPress.2023-12-12.xml
Normal file
348444
chihounds/data/chicagohounds.WordPress.2023-12-12.xml
Normal file
File diff suppressed because one or more lines are too long
@@ -1,4 +0,0 @@
|
||||
cd "$(dirname "$0")"
|
||||
PROJECT_NAME=selig
|
||||
CONTAINER_NAME=chihounds
|
||||
docker run --rm --user 33:33 --volume ${PROJECT_NAME}_${CONTAINER_NAME}-wpdata:/var/www/html --volume ./data:/data --env-file ../.env --env-file .env --network ${PROJECT_NAME}_network "$@"
|
||||
@@ -1 +0,0 @@
|
||||
../shared/wp-cli.sh
|
||||
18
chihounds/wp-create-site.sh
Executable file
18
chihounds/wp-create-site.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
if [ "$#" -lt 1 ]; then
|
||||
echo "Error: COMPOSE_FILE argument is missing."
|
||||
echo "Usage: $0 COMPOSE_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COMPOSE_FILE="$1"
|
||||
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||
ENV_FILE=$SCRIPTPATH/.env
|
||||
|
||||
# this env file is not being read and i don't know why.
|
||||
# it's actually being loaded from compose.yml
|
||||
|
||||
docker compose -f $COMPOSE_FILE --env-file $ENV_FILE run --rm -it wp-cli sh -c '\
|
||||
wp site create \
|
||||
--title="$WORDPRESS_SITE_2_TITLE" \
|
||||
--slug="$WORDPRESS_SITE_2_SLUG" \
|
||||
--skip-email'
|
||||
@@ -1 +0,0 @@
|
||||
../shared/wp-import.sh
|
||||
@@ -1 +0,0 @@
|
||||
../shared/wp-install.sh
|
||||
Reference in New Issue
Block a user