aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile3
-rw-r--r--thatcomputerscientist/settings.py4
2 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 3c91da9e..a6f5e7f0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,7 +18,8 @@ RUN pip install -r requirements.txt
COPY . .
RUN python manage.py collectstatic --noinput
-
+RUN python manage.py makemigrations
+RUN python manage.py migrate
EXPOSE 8080
diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py
index aa7e0d3e..8aeff78f 100644
--- a/thatcomputerscientist/settings.py
+++ b/thatcomputerscientist/settings.py
@@ -27,8 +27,8 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = os.getenv('AUTHORIZATION_STRING')
# SECURITY WARNING: don't run with debug turned on in production!
-# DEBUG = os.getenv('ENVIRONMENT') == 'development' or False
-DEBUG = True
+DEBUG = os.getenv('ENVIRONMENT') == 'development' or False
+# DEBUG = True
ALLOWED_HOSTS = ["*"]
CSRF_TRUSTED_ORIGINS = ['https://*.thatcomputerscientist.com', 'https://*.thatcomputerscientist.fly.dev/']