Browse Source

+ replace to local domain quick script for wp

master
dimti 2 years ago
parent
commit
6968950560
  1. 6
      wp/quick/replace-to-local-domain.sh

6
wp/quick/replace-to-local-domain.sh

@ -0,0 +1,6 @@
#!/bin/bash
REMOTE_DOMAIN=site-wordpress.cap.wpstudio.ru
LOCAL_DOMAIN=site-wordpress.local.wpstudio.ru
wp search-replace "https://${REMOTE_DOMAIN}" "http://${LOCAL_DOMAIN}" wp_options wp_posts wp_postmeta --report-changed-only=true
wp search-replace "${REMOTE_DOMAIN}" "${LOCAL_DOMAIN}" wp_options wp_posts wp_postmeta --report-changed-only=true
Loading…
Cancel
Save