Closed (fixed)
Project:
Aegir Hosting Tasks Extra
Version:
7.x-3.x-dev
Component:
Sync
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Oct 2015 at 19:28 UTC
Updated:
15 Mar 2016 at 13:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
helmo commentedThe UI turned out to be simple... the backend it not functional yet... I have to debug some more.
It might be good to add an extra permission for this... or a setting to disable it globally.
Comment #3
helmo commentedIt turns out that no backend changes are needed. I just added a bit of documentation on how to create a custom Drush alias for this purpose.
It needs two aegir specific lines, which I documented in a new README file.
One limitation I found is that the remote site needs to be multi site ... A workaround is to create a symlink on the remote site from sites/ to sites/default.
We could change our sync code to make use of drush path aliases to really fix that.
Comment #4
helmo commentedfixed a case where no other sites were available for sync. Custom option should then still be shown.
Comment #5
helmo commentedI re-discovered #2407309: Allow sync from any alias.
Here's a combined patch.
One valid point from #2407309-5: Allow sync from any alias., "the files sync assumes files are at `sites/SITENAME/files` which it often isn't."
Comment #6
helmo commentedCommitted, and added a new issue #2641170: Use drush path aliases? for the remaining point from #5
Comment #8
helmo commentedComment #10
jon pugh> It needs two aegir specific lines, which I documented in a new README file.
It would be nice if we could figure out how to avoid needing this...
Wouldn't it be safe to assume that if no "context_type" exists then it is a site?
Comment #11
jon pughAlso I'm not seeing the new README you mention...
http://cgit.drupalcode.org/hosting_tasks_extra/tree/hosting_sync/README.md
Comment #12
jon pughI added the parts to my drush aliases and now I get an error:
'context_type' => 'site',
'server' => '@server_master',
I dug in and found "parent_key" to be "platform", so I am assuming it is looking for the "platform" property.