Add detail on running commands in an LSIO container

See #729
This commit is contained in:
Christopher C. Wells 2023-10-21 07:11:35 -07:00
parent 9fc666dd2e
commit 0077d26142
1 changed files with 12 additions and 3 deletions

View File

@ -33,15 +33,24 @@ See [Django's databases documentation](https://docs.djangoproject.com/en/4.2/ref
See [HTTPS/SSL configuration](ssl.md) for information on how to secure Baby Buddy. See [HTTPS/SSL configuration](ssl.md) for information on how to secure Baby Buddy.
For doing administrative work within the LSIO container, setting an environment variable may be necessary. ### Running commands
For example:
Run administrative commands with the `/app/www/public/manage.py` script. Set
the environment variables `DJANGO_SETTINGS_MODULE` and `SECRET_KEY` before
running commands. For example:
```shell ```shell
docker exec -it babybuddy /bin/bash docker exec -it babybuddy /bin/bash
export DJANGO_SETTINGS_MODULE="babybuddy.settings.base" export DJANGO_SETTINGS_MODULE="babybuddy.settings.base"
python3 /app/babybuddy/manage.py clearsessions export SECRET_KEY="$(cat /config/.secretkey)"
cd /app/www/public
python manage.py --help
``` ```
Note: the container name (`babybuddy`) and secret key location
(`/config/.secretkey`) may differ depending on the container configuration.
Refer to the running containers configuration for these values.
## Home Assistant ## Home Assistant
[Home Assistant](https://www.home-assistant.io/) is an open source home automation tool [Home Assistant](https://www.home-assistant.io/) is an open source home automation tool