-
Notifications
You must be signed in to change notification settings - Fork 398
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
Local synchronization for multisites #1113
Comments
The current architecture would actually allow you to use a yml file per site. E.g., create
Then execute You could wrap this with a bash script pretty easily:
Then execute |
I agree with @grasmash , I'd like to see all site-specific configuration get moved to individual yml files in the On a related note, I'd also like to improve the multisite setup experience (see #1086 and #1087). |
I'd have no problem with the bash script approach if it were part of BLT. What I wouldn't want is for that to be on implementing projects to provide themselves and then have it start breaking setups when BLT starts migrating functionality to Robo or some other task runner. It seems like something that should be supported out-of-the-box. @danepowell what are your thoughts about keeping the config files in It's not that I don't think keeping them in |
I think we can make some pretty minor modifications to BLT to support the following syntax:
BLT would then look to see if How's that sound? |
Sounds good to me. Ping me if you want to coordinate work on this... I don't have any free cycles today but might next week. |
Sounds good to me too. |
@danepowell & @grasmash I made an attempt at this behavior in #1117. @grasmash you're right that nothing dramatic needs to be changed to support the behavior, but one surprising change was needing to override See here for instance. |
One hole that still remains in BLT's support of multisite development are the local synchronization tasks.
Currently, they can only be run easily against the
default
site, even if run as, for instance,The biggest stumbling block seems to be this section of
local-sync.xml
:At present, there is no way to configure the aliases without overriding the
drush.aliases
variables directly. E.g,While this works, it is cumbersome and error prone.
I think it would be better if BLT could facilitate defining different aliases for non-default sites (with the fallback being that everything is run against the default site).
#827 attempted to do some of this, but never got to the point that it could be incorporated. I'd be interested in hearing from others (paging @danepowell) who are using BLT in a multisite context. What would you see as a good solution to this issue? @grasmash suggested site-by-site files for defining values (which I'm not opposed to), but if all that is required are aliases, perhaps this isn't necessary.
I'd love to hear some thoughts as perhaps there's a solution to this issue that I'm overlooking.
The text was updated successfully, but these errors were encountered: