Skip to content

Commit

Permalink
🦄 containers: Change entrypoint to use Gunicorn (closes #250)
Browse files Browse the repository at this point in the history
This commit changes the entrypoints on the Dockerfiles to use `gunicorn`
instead of the Django debug server. I was able to switch it for both
development and production since Gunicorn is fairly simple.

For development, I included a setting that automatically reloads
Gunicorn if files change on disk. This is a setting intended for local
development, such as when we have container volumes with docker-compose.

Also, I have waited a long time to have a semi-valid excuse to use the
:unicorn: emoji.

Closes #250.

Signed-off-by: Justin W. Flory <[email protected]>
  • Loading branch information
jwflory committed Dec 13, 2019
1 parent 4fa894f commit 664273d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ COPY . /app

EXPOSE 8000

CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
CMD ["gunicorn", "--reload", "grasa_event_locator.wsgi"]
2 changes: 1 addition & 1 deletion Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ COPY . /app

EXPOSE 8000

CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
CMD ["gunicorn", "grasa_event_locator.wsgi"]

0 comments on commit 664273d

Please sign in to comment.