-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp-pull-production-db fails for WP Network sites #37
Comments
@l3ku Please implement or reassign this once the new Vagrant image with is out and in production, and it makes sense to improve the scripts inside it. |
The latest Vagrant box released on Monday has an improved wp-pull-production-db command that now handles the main site of a network. Subdomains in a subdomain network cannot yet be automated however. See https://seravo.com/docs/get-started/release-notes/ and https://seravo.com/docs/configuration/wordpress-network/#local-development-with-vagrant-and-wordpress-network |
After running wp-pull-production-db all wp-cli commands stop working, because the database has now the production Network domain while the Vagrant config files refer to the local version.
The temporary workaround is to use DOMAIN_CURRENT_SITE='https://example.local' before running
wp search-replace
.The second problem is that the search-replace does not change all occurences of the production domain. It should be run with the
--network
flag to also update all wp_blogs and wp_sites etc tables.(Bug report written by Otto on customer's laptop)
The text was updated successfully, but these errors were encountered: