diff options
| -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', } } |
