Migrate Django server to guicorn
This commit is contained in:
@@ -36,5 +36,5 @@ fi
|
|||||||
# Sync the countries and world travel regions
|
# Sync the countries and world travel regions
|
||||||
python manage.py download-countries
|
python manage.py download-countries
|
||||||
|
|
||||||
# Start Django server
|
# Start gunicorn
|
||||||
python manage.py runserver 0.0.0.0:8000
|
gunicorn main.wsgi:application --bind 0.0.0.0:8000
|
||||||
@@ -11,7 +11,7 @@ import os
|
|||||||
|
|
||||||
from django.core.wsgi import get_wsgi_application
|
from django.core.wsgi import get_wsgi_application
|
||||||
|
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demo.settings")
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main.settings")
|
||||||
|
|
||||||
application = get_wsgi_application()
|
application = get_wsgi_application()
|
||||||
# add this vercel variable
|
# add this vercel variable
|
||||||
|
|||||||
@@ -12,4 +12,5 @@ Pillow
|
|||||||
whitenoise
|
whitenoise
|
||||||
django-resized
|
django-resized
|
||||||
django-geojson
|
django-geojson
|
||||||
setuptools
|
setuptools
|
||||||
|
gunicorn==23.0.0
|
||||||
Reference in New Issue
Block a user