After successfully provisioning the local development Multisite environment (with Landrush and subdomains and later with subfolders too), I successfully provisioned the remote server and deployed my repo to it, but I did not find a way to deploy in a way that I’d be able to get the remote to work.
Most of the time I get a redirect loop. This redirect loop points to the DOMAIN_CURRENT_SITE plus wp-signup.php?new= and the actual main domain. If I’ve commented out DOMAIN_CURRENT_SITE totally, I was able to get to the signup page, but strangely only sort-of once (I do not get this part to be honest, it loaded once), but then all I was getting is “Error establishing a database connection” message from Wordpress. (I was able to log in to MySQL in the console with the same credentials as in .env.)
Bare Trellis and Bedrock freshly cloned (trying since 10 days, cloned new commits since then as well), only vault.yml; wordpress_sites.yml; application.php for multisite and trellis/hosts files edited. Everything is pushed to the remote repo.
I’ve tried subdomain and subdirectory too, mostly the latter, because of Let’s Encrypt and HSTS it seem more feasible for now (but it’s cool that Let’s Encrypt will support wildcards soon). (Although subdomains with actually hardcoded sites would be the best option for me, but don’t know if that’s possible.)
- followed the Multisite setup instructions and the rest of the startup guide;
- checked the similar threads here in Discourse and on the “wide Internets” too, but did not find a solution;
- rebuilt the DigitalOcean droplet at least 19 times from scratch It’s Ubuntu 16.04.3 x64 actually.
- tried to transform a single site installation the oldschool way following Wordpress.org’s nginx page (At the end I’ve arrived at the Error establishing a database connection page again, one time before I saw a more formal Multisite database problem page.)
Ok, I know thiat I’m a mess or this is a mess at least. What I’d be really happy to hear if anybody succeeded setting up Multisite lately, and if you can detail the important steps which I might miss, or if I should post some more things, let me know. Thanks in advance!
PS: Single site deployments work flawlessly on remote.