diff options
| author | Bobby <[email protected]> | 2023-11-10 18:43:11 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-11-10 18:43:11 -0500 |
| commit | b937f0571e4047d360bb5822833c8f47d63e419b (patch) | |
| tree | 8b3e9ab2b8e2d62dadb2eaec46e143fadfd2a93e | |
| parent | c04e694275fe3193d4eef548ee63f4bc1ec121f9 (diff) | |
| download | thatcomputerscientist-b937f0571e4047d360bb5822833c8f47d63e419b.tar.xz thatcomputerscientist-b937f0571e4047d360bb5822833c8f47d63e419b.zip | |
Update Dockerfile
| -rw-r--r-- | Dockerfile | 3 | ||||
| -rw-r--r-- | thatcomputerscientist/settings.py | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -15,10 +15,11 @@ WORKDIR /app COPY requirements.txt . RUN pip install -r requirements.txt -COPY . . +COPY . ./app RUN python manage.py collectstatic --noinput +RUN python manage.py migrate EXPOSE 8080 diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py index 1989a9f4..be4054cf 100644 --- a/thatcomputerscientist/settings.py +++ b/thatcomputerscientist/settings.py @@ -153,7 +153,7 @@ CHANNEL_LAYERS = { DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3') if os.getenv('ENVIRONMENT') == 'development' else '/home/ubuntu/database/db.sqlite3', + 'NAME': os.path.join(BASE_DIR, 'db.sqlite3') if os.getenv('ENVIRONMENT') == 'development' else '/database/db.sqlite3', } } |
