Skip to content

Using Bee with Lando

Martin Price edited this page May 6, 2024 · 5 revisions

Bee can be used with your existing Lando setup. From Lando v3.21.0, Bee is included within the default Backdrop recipe; it currently uses the HEAD version so you will get the latest changes at every rebuild. You may need to run lando rebuild -y if you have just upgraded. If you are using an earlier version or want to install another version manually.

Installation

  1. Add some build steps that download and install Bee:
services:
  appserver:
    build_as_root:
      - 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
  1. Add a tooling command for bee:
tooling:
  bee:
    service: appserver
    cmd: /usr/local/bin/bee/bee.php
  1. Rebuild Lando to make the above changes take effect: lando rebuild

  2. An optional step to ensure you can easily run bee on the site from the app root (or other folders that aren't in the webroot is to replace the tooling with this (where docroot is the value of webroot in the recipe; adjust if you have a different webroot):

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

Usage

Use Bee by typing lando bee ...

Clone this wiki locally