| 123456789101112131415161718 |
- #! /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
- '
|