Seravo / wp-vagrant

Vagrant box for the Seravo WordPress project template
https://seravo.com/docs/
MIT License
18 stars 3 forks source link

wp-pull-production-db fails for WP Network sites #37

Open Phoenix2k opened 7 years ago

Phoenix2k commented 7 years ago

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)

ottok commented 6 years ago

@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.

ottok commented 5 years ago

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

ottok commented 3 years ago

Note related issues: