From b937f0571e4047d360bb5822833c8f47d63e419b Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 10 Nov 2023 18:43:11 -0500 Subject: Update Dockerfile --- Dockerfile | 3 ++- thatcomputerscientist/settings.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c91da9e..a3953968 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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', } } -- cgit v1.2.3