rewrites the whole thing
This commit is contained in:
16
migrate-db-paths.sh
Executable file
16
migrate-db-paths.sh
Executable 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
|
||||
'
|
||||
Reference in New Issue
Block a user