Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
102 stars 54 forks source link

Subsite URL not accessible from inside vagrant box #74

Open danielck opened 6 years ago

danielck commented 6 years ago

I was trying to write tests for a fairly complex multisite installation. As @ottok suggested to me, I could use wp-cli commands within the test script to get the correct URL for a specific subsite ID. This works, but then I discovered the subsites URL's are not accessible from within the vagrant box. Is there a trick to this or have I discovered a bug?

ottok commented 5 years ago

Related issue: Seravo/wp-palvelu-vagrant#37 "wp-pull-production-db fails for WP Network sites"

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 4 years ago

The issue #81 is a duplicate of this. Subdirectory Networks run on Vagrant (and Docker) easily, but subdomain Networks would need custom domain mapping and search-replaces, which currently are not feasible to automate.

Currently one can use https://seravo.com/docs/configuration/wordpress-network/#wordpress-network-subdomain-installation + some custom wp-cli scripts to do the search-replace. We could still improve docs here and offer more examples of vagrant-up-customizer.sh