diff --git a/Dockerfile b/Dockerfile index 57c2fe3..cc72956 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/System/settings.py b/System/settings.py index 283f0d7..53d17a8 100644 --- a/System/settings.py +++ b/System/settings.py @@ -29,7 +29,7 @@ AUTH_USER_MODEL = 'SystemApp.Users' -ALLOWED_HOSTS = ['127.0.0.1','ewawe-parking.herokuapp.com', 'localhost'] +ALLOWED_HOSTS = ['*'] LOGIN_URL = '/' diff --git a/requirements.txt b/requirements.txt index a8642ab..79fad96 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,6 @@ -django-heroku django gunicorn whitenoise pip requests -django-environ pytz \ No newline at end of file