As this behavior is not the default one, I suggest to make this local-targeting thing optional:
Without local target specified, search for the same site key
If this key is not found in the development environment and ONLY if there is a single site key, use it as the default one
What are your thoughts on this feature?
As we need it for our servers, we maybe will work on it in the next weeks, but any help would be greatly welcomed!
In a lot of situations, you'll have a
staging
and aproduction
website on the same server.Trellis only supports this by using multiple keys in your
wordpress_sites
(@see https://discourse.roots.io/t/staging-and-production-on-same-vps/2440/23), so you'll end with 2 environments:Working like this makes it impossible to push/pull from and to the staging site, as our development environment does NOT have the
staging.domain.tld
.We already are able to target the distant couple
env
+site
, but we should also be able to target the localsite
, to makes these migration possibles:PULL development:domaint.tld << production:staging.domain.tld
PULL development:domaint.tld << production:domain.tld
PUSH development:domaint.tld >> production:staging.domain.tld
PUSH development:domaint.tld >> production:domain.tld
As this behavior is not the default one, I suggest to make this local-targeting thing optional:
site
keydevelopment
environment and ONLY if there is a single site key, use it as the default oneWhat are your thoughts on this feature?
As we need it for our servers, we maybe will work on it in the next weeks, but any help would be greatly welcomed!