lando / backdrop

The Official Backdrop Lando Plugin
https://docs.lando.dev/backdrop/
GNU General Public License v3.0
1 stars 5 forks source link

Add bee (command line tool) to Backdrop recipe #13

Closed yorkshire-pudding closed 4 months ago

yorkshire-pudding commented 1 year ago

Bee is a command line tool built specially for Backdrop but influenced by Drush. Given that Drush for Backdrop is dependent on Drush 8 which will not be supported once Drupal 7 reaches end of life, we are keen to encourage wider adoption (and development) of bee to ensure that a supported solution is available going forward.

While we have this in our wiki, it would be good to include bee by default in the backdrop recipe. I've had a look at the code for this project, but not sure where this config would go.

This is what is in the guidance: Add some build steps that download and install Bee: services:

  appserver:
    build:
      - wget -qO bee.zip https://github.com/backdrop-contrib/bee/archive/1.x-1.x.zip
      - unzip -q bee.zip && rm bee.zip
      - mv bee-1.x-1.x /usr/local/bin/bee

Add a tooling command for bee:

tooling:
  bee:
    service: appserver
    cmd: /usr/local/bin/bee/bee.php

I tend to change the last line to be:

cmd: /usr/local/bin/bee/bee.php --root=/app/docroot

I set docroot to be the webroot in the recipe. I don't know if it's possible to derive the webroot setting in the tooling command for the recipe? That is a nice to have rather than essential i.e.

cmd: /usr/local/bin/bee/bee.php --root=/app/${webroot}
klonos commented 1 year ago

Yes please!

Thank you for raising this issue and for helping co-maintain the bee project @yorkshire-pudding, and thank you @BWPanda for starting the project and maintaining it for so many years 🙏🏼

ElusiveMind commented 1 year ago

This would be a great addition to the Lando Backdrop recipe! Especially since it is a Backdrop native tool and is being actively supported and maintained.

yorkshire-pudding commented 6 months ago

Hi @pirog and @reynoldsalec - we've noticed that the docs now say that bee is included in the backdrop recipe and it looks to be in the latest release here, which predates 3.20.8 by a couple of hours, but after updating to the latest lando version and creating a new backdrop app from scratch, bee does not appear in the list of commands. Please can you advise.

pirog commented 6 months ago

@yorkshire-pudding will be in next release. if you want before that you would need to manually instal the plugin

yorkshire-pudding commented 6 months ago

Thanks @pirog - no pressure. We have a tried and tested way of adding to the recipe to keep us going until the next release.

reynoldsalec commented 4 months ago

Bee should be deployed in the latest version(s) of the Backdrop recipe; upgrade to Lando v3.21 and make sure you have the latest Backdrop recipe by running lando update