Skip to content

Commit

Permalink
Issue #447: Update install instructions for DDEV.
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkshire-pudding authored Oct 19, 2024
1 parent 4a75e0d commit c0c14fe
Showing 1 changed file with 9 additions and 31 deletions.
40 changes: 9 additions & 31 deletions docs/Using-bee-with-DDEV.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,12 @@
[DDEV](https://github.com/drud/ddev) is a docker-based local development tool with excellent support for Backdrop CMS. Bee can be used in combination with DDEV by setting up a [custom DDEV command](https://ddev.readthedocs.io/en/stable/users/extend/custom-commands/).
[DDEV](https://github.com/drud/ddev) is a docker-based local development tool
with excellent support for Backdrop CMS. Bee can be easily installed with the
[ddev-backdrop-bee](https://github.com/backdrop-ops/ddev-backdrop-bee) addon.

1. Install `bee` within your `web-build` container by opening `.ddev/web-build/Dockerfile`. If this file does not exist yet, create it. Add the following contents:
```
ARG BASE_IMAGE
FROM $BASE_IMAGE
1. Install the addon:
`ddev get backdrop-ops/ddev-backdrop-bee`

# Install Backdrop CLI tool bee:
RUN wget -qO bee.zip https://github.com/backdrop-contrib/bee/archive/1.x-1.x.zip
RUN unzip -q bee.zip && rm bee.zip
RUN mv bee-1.x-1.x /usr/local/bin/bee
```
2. Restart the DDEV container:
`ddev restart`

2. Create a `bee` command by creating a new text file at `.ddev/commands/web/bee`. Put in the following contents:
```
#!/usr/bin/env bash
/usr/local/bin/bee/bee.php --root=/var/www/html/$DDEV_DOCROOT --uri=$DDEV_PRIMARY_URL $@
```

3. In order for some commands to work, you should set a `$base_url` within your settings.ddev.php file:
```
$base_url = getenv('DDEV_PRIMARY_URL');
```

4. Restart the DDEV container:
```
ddev restart
```

5. Now you can use `bee` within the ddev web container:
```
ddev bee status
```
3. Test bee:
`ddev bee status`

0 comments on commit c0c14fe

Please sign in to comment.