use neodb.env in non-docker installations

This commit is contained in:
Her Email 2023-12-02 23:28:58 -05:00 committed by Henri Dickson
parent 0ee89d467c
commit 0004130e98
2 changed files with 5 additions and 5 deletions

View file

@ -15,10 +15,10 @@ except:
# Parse configuration from:
# - environment variables
# - .env file in project root directory
# - /etc/neodb.conf
environ.Env.read_env("/etc/neodb.conf")
environ.Env.read_env(os.path.join(BASE_DIR, ".env"))
# - neodb.env file in project root directory
# - /etc/neodb.env
environ.Env.read_env("/etc/neodb.env")
environ.Env.read_env(os.path.join(BASE_DIR, "neodb.env"))
# ====== List of user configuration variables ======
env = environ.FileAwareEnv(

View file

@ -61,7 +61,7 @@ Optionally, `robots.txt` and `logo.png` may be placed under `$NEODB_DATA/www-roo
See `neodb.env.example` and `configuration.md` for more options
## Start docker
in the folder with `compose.yml` and `neodb.env`, execute as the user you just created:
in the folder with `compose.yml` and `.env`, execute as the user you just created:
```
$ docker compose pull
$ docker compose --profile production up -d