-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #447: Update install instructions for DDEV.
- Loading branch information
1 parent
4a75e0d
commit c0c14fe
Showing
1 changed file
with
9 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |