Last active
February 22, 2022 02:19
-
-
Save jacobmc/27cd950c78f192d7ba00d022942f2aa4 to your computer and use it in GitHub Desktop.
Bedrock Migration CLI Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Commands for updating the WordPress database for a migration | |
# from a flat WordPress install to a Bedrock install | |
wp search-replace /wp-content /app --all-tables | |
wp search-replace /wp-admin /wp/wp-admin --all-tables | |
wp search-replace /wp-login.php /wp/wp-login.php --all-tables | |
wp search-replace /xmlrpc.php /wp/xmlrpc.php --all-tables | |
# Chained Commands | |
wp search-replace /wp-content /app --all-tables && wp search-replace /wp-admin /wp/wp-admin --all-tables && wp search-replace /wp-login.php /wp/wp-login.php --all-tables && wp search-replace /xmlrpc.php /wp/xmlrpc.php --all-tables |
Line 3, should NOT include
/web/
as it should be:
wp search-replace /wp-content /app --all-tables
.htaccess handles the web as needed.
Thanks! It's been updated.
I just realized that the #Chained Command wasn't updated the change.
The #Chained command has been updated.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 3, should NOT include
/web/
as it should be:wp search-replace /wp-content /app --all-tables
.htaccess handles the web as needed.