Skip to content

Commit

Permalink
Merge pull request #257 from acsone/dotenv-sbi
Browse files Browse the repository at this point in the history
Follow common practice for environment files naming
  • Loading branch information
sbidoul authored Sep 3, 2023
2 parents 905678e + 4f0157a commit 5e38bf7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
data
.tox
.env*
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ celerybeat-schedule
*.sage.py

# Environments
.env
.env*
.venv
env/
venv/
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Running it
Environment variables
---------------------

First create and customize a file named ``environment``,
First create and customize a file named ``.env``,
based on `environment.sample <./environment.sample>`_.

Tasks performed by the bot can be specified by setting the ``BOT_TASKS``
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
- 8080:8080
user: "${UID}:${GID}"
env_file:
- ./environment
- ./.env
volumes:
- ./data/cache:/app/run/.cache
- ./data/simple-index:/app/run/simple-index
Expand All @@ -28,7 +28,7 @@ services:
- queue
user: "${UID}:${GID}"
env_file:
- ./environment
- ./.env
volumes:
- ./data/cache:/app/run/.cache
- ./data/simple-index:/app/run/simple-index
Expand All @@ -42,7 +42,7 @@ services:
- queue
user: "${UID}:${GID}"
env_file:
- ./environment
- ./.env
volumes:
- ./data/cache:/app/run/.cache
- ./data/simple-index:/app/run/simple-index
Expand Down

0 comments on commit 5e38bf7

Please sign in to comment.