Skip to content
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

Subsite URL not accessible from inside vagrant box #74

Open
danielck opened this issue Oct 27, 2017 · 3 comments
Open

Subsite URL not accessible from inside vagrant box #74

danielck opened this issue Oct 27, 2017 · 3 comments
Labels
feature-vagrant Issues related to the Vagrant development environment help wanted

Comments

@danielck
Copy link

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
Copy link
Contributor

ottok commented Mar 1, 2019

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

@ottok
Copy link
Contributor

ottok commented May 17, 2019

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
Copy link
Contributor

ottok commented May 26, 2020

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

@ypcs ypcs added the feature-vagrant Issues related to the Vagrant development environment label Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-vagrant Issues related to the Vagrant development environment help wanted
Projects
None yet
Development

No branches or pull requests

3 participants