rewrites the whole thing

This commit is contained in:
Jean-Christophe Vanhalle
2023-08-14 14:48:47 +02:00
parent 222d86a909
commit b47876ad62
19 changed files with 407 additions and 139 deletions

16
migrate-db-paths.sh Executable file
View File

@@ -0,0 +1,16 @@
#! /bin/sh
#
set -a
. "${PWD}/.env"
. "${PWD}/env_files/migrate-db.env"
set +a
docker exec --user www-data "${PREFIX}-app" /bin/sh -c '
wp plugin install wp-migrate-db ; wp plugin activate wp-migrate-db ; wp migratedb find-replace \
--find='"//${REMOTE_WP_URL}"','"${REMOTE_WP_PATH}"' \
--replace='"//${APP_URL}"',/var/www/html \
--skip-replace-guids \
--exclude-post-revisions \
--exclude-spam
'