You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

migrate-db-paths.sh 421B

12345678910111213141516
  1. #! /bin/sh
  2. #
  3. set -a
  4. . "${PWD}/.env"
  5. . "${PWD}/env_files/migrate-db.env"
  6. set +a
  7. docker exec --user www-data "${PREFIX}-app" /bin/sh -c '
  8. wp plugin install wp-migrate-db ; wp plugin activate wp-migrate-db ; wp migratedb find-replace \
  9. --find='"//${REMOTE_WP_URL}"','"${REMOTE_WP_PATH}"' \
  10. --replace='"//${APP_URL}"',/var/www/html \
  11. --skip-replace-guids \
  12. --exclude-post-revisions \
  13. --exclude-spam
  14. '