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

Use Site Aliases to run 'bee' commands on local and remote sites according to site alias definitions #131

Open
Wylbur opened this issue Mar 3, 2021 · 5 comments

Comments

@Wylbur
Copy link

Wylbur commented Mar 3, 2021

Site Aliases is a significant feature of Drush and Brush. It allows you to execute commands on a remote backdrop installation. To also allows you to use rsync to move files between installations.

@ghost ghost added the type: enhancement label Mar 3, 2021
@ghost
Copy link

ghost commented Nov 5, 2021

I'm not sure about this... If it turns out to be fairly simple to implement, then maybe. But if it's too complex, then I think it's better left for Drush.

@oadaeh
Copy link

oadaeh commented Jul 16, 2022

I think leaving this for Drush is not really an option.

@jenlampton
Copy link
Member

If we could get #190 done, then we could create an add-on module called bees or swarm or hive that expands it to include more of the commands from drush.

This was raised in today's discussion at Backdrop LIVE. Names were recommended by @keiserjb (bees), @TheMetMan (swarm), and @indigoxela (hive).

@ghost
Copy link

ghost commented Jul 16, 2022

Module's adding their own commands is already possible. So have at it!

@yorkshire-pudding
Copy link
Collaborator

yorkshire-pudding commented Oct 24, 2022

We had a useful discussion at Backdrop Live on what, if it is to be included, site alias functionality would look like. For reference, here are the notes.

Config

Usage

  • Recommend using the @ sign to denote an alias using the pattern @[site_name].[environment] globally or @[environment] when in site folder. Additional example of @[pantheon].[site_name].[environment] - this might need a bee/terminus interface.
  • There is a desire to be able to run this anywhere in the system and have it act on whichever site/environment combination is given but also should work from site folder. EDIT - I'm not sure this would work with tools like Lando/DDev/Docksal as need to be within the 'app' folder to act on a particular site when bee is installed as part of the app tooling.
  • bee should recognise this as a global argument that can operate any commands
  • It would be good if the config could use SSH configs (i.e. from ~/.ssh/config) and use the hostname rather than having to re-specify the SSH details. Don't know whether drush does this or not?

Reference

@jenlampton @oadaeh @hosef (@Wylbur - I know you couldn't make it, but I know you have an interest in this) - let me know if I've summarised this correctly or not.

@BWPanda - FYI

@yorkshire-pudding yorkshire-pudding changed the title Use Site Aliases to run 'b' commands on remote Backdrop installations Use Site Aliases to run 'bee' commands on remote Backdrop installations Nov 7, 2022
@yorkshire-pudding yorkshire-pudding changed the title Use Site Aliases to run 'bee' commands on remote Backdrop installations Use Site Aliases to run 'bee' commands on local and remote sites according to site alias definitions Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants