diff options
| author | Bobby <[email protected]> | 2023-11-14 22:24:49 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-11-14 22:24:49 -0500 |
| commit | b5bc2804426ce1ace3b87dbdd5ad9e703a1c4884 (patch) | |
| tree | 725873a2294d04dd695129314027e3ebf9533365 | |
| parent | 651a7aa656da9fbb30f880c1936a583965dc769d (diff) | |
| download | thatcomputerscientist-b5bc2804426ce1ace3b87dbdd5ad9e703a1c4884.tar.xz thatcomputerscientist-b5bc2804426ce1ace3b87dbdd5ad9e703a1c4884.zip | |
Update Dockerfile and Read DB from ENV
| -rw-r--r-- | Dockerfile | 2 | ||||
| -rw-r--r-- | thatcomputerscientist/settings.py | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -56,6 +56,8 @@ ARG REDIS_PASSWORD=${REDIS_PASSWORD} ENV REDIS_PASSWORD=${REDIS_PASSWORD} ARG REDIS_PORT=${REDIS_PORT} ENV REDIS_PORT=${REDIS_PORT} +ARG DB_DATABASE=${SQLITE_DB_NAME} +ENV DB_DATABASE=${SQLITE_DB_NAME} RUN mkdir -p /shifoo diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py index 1ca6b2df..673464e5 100644 --- a/thatcomputerscientist/settings.py +++ b/thatcomputerscientist/settings.py @@ -157,7 +157,7 @@ CHANNEL_LAYERS = { DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'NAME': os.path.join(BASE_DIR, os.environ.get('SQLITE_DB_NAME')), } } |
