Skip to content

Commit 99da824

Browse files
committed
replace seed command in dockerfile since server won't be going up/down anymore
1 parent 9d8d0e7 commit 99da824

2 files changed

Lines changed: 3 additions & 39 deletions

File tree

backend/deployment/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,6 @@ RUN mv backend/urls_live.py backend/urls.py && \
3030

3131
# Set the gunicorn to run the wsgi file
3232
EXPOSE 443
33-
ENTRYPOINT gunicorn --bind=0.0.0.0:443 -k gevent --timeout 300 --access-logfile - --log-file - --log-level info --capture-output --enable-stdio-inheritance backend.wsgi
33+
ENTRYPOINT python3 manage.py migrate && \
34+
python3 manage.py seed && \
35+
gunicorn --bind=0.0.0.0:443 -k gevent --timeout 300 --access-logfile - --log-file - --log-level info --capture-output --enable-stdio-inheritance backend.wsgi

backend/deployment/tasks.Dockerfile

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)