Skip to content

Commit

Permalink
Added gunicorn in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
agent87 committed Mar 13, 2023
1 parent ab92bfe commit 0895c8b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ RUN ["python" , "manage.py", "makemigrations"]
RUN ["python" , "manage.py", "migrate"]

#
CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]
CMD gunicorn -w 2 -b 0.0.0.0:80 System.wsgi:application
2 changes: 1 addition & 1 deletion System/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

AUTH_USER_MODEL = 'SystemApp.Users'

ALLOWED_HOSTS = ['127.0.0.1','ewawe-parking.herokuapp.com', 'localhost']
ALLOWED_HOSTS = ['*']

LOGIN_URL = '/'

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
django-heroku
django
gunicorn
whitenoise
pip
requests
django-environ
pytz

0 comments on commit 0895c8b

Please sign in to comment.