aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-11-10 18:43:11 -0500
committerBobby <[email protected]>2023-11-10 18:43:11 -0500
commitb937f0571e4047d360bb5822833c8f47d63e419b (patch)
tree8b3e9ab2b8e2d62dadb2eaec46e143fadfd2a93e
parentc04e694275fe3193d4eef548ee63f4bc1ec121f9 (diff)
downloadthatcomputerscientist-b937f0571e4047d360bb5822833c8f47d63e419b.tar.xz
thatcomputerscientist-b937f0571e4047d360bb5822833c8f47d63e419b.zip
Update Dockerfile
-rw-r--r--Dockerfile3
-rw-r--r--thatcomputerscientist/settings.py2
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',
}
}