mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-24 07:19:36 +02:00
Migrate Django server to guicorn
This commit is contained in:
parent
075257c846
commit
874a384477
3 changed files with 5 additions and 4 deletions
|
@ -36,5 +36,5 @@ fi
|
|||
# Sync the countries and world travel regions
|
||||
python manage.py download-countries
|
||||
|
||||
# Start Django server
|
||||
python manage.py runserver 0.0.0.0:8000
|
||||
# Start gunicorn
|
||||
gunicorn main.wsgi:application --bind 0.0.0.0:8000
|
|
@ -11,7 +11,7 @@ import os
|
|||
|
||||
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()
|
||||
# add this vercel variable
|
||||
|
|
|
@ -13,3 +13,4 @@ whitenoise
|
|||
django-resized
|
||||
django-geojson
|
||||
setuptools
|
||||
gunicorn==23.0.0
|
Loading…
Add table
Add a link
Reference in a new issue