Hello everyone, I'am looking to deploy Django ASGI project in production.
This is the actual setup. Because Daphne is installed into the project
python manage.py runserver use the asgi.py file instead of wsgi.
Si with this config the project run with asgi on port 8000 and wsgi on port
5000.
Is there any big difference using
daphne -b 0.0.0.0 -p 8000 main.asgi:application
Instead of:
python manage.py runserver
[uwsgi]
uid = www-data
gid = www-data
socket = 0.0.0.0:5000
for-readline = /srv/settings.env
env = %(_)
endfor =
plugin = python3
chdir = /var/www/application
module = main.wsgi:application
virtualenv = /srv/env
daemonize = /var/log/uwsgi/uwsgi_worker.log
attach-daemon = sh -c "cd /var/www/application/ ; source
/srv/env/bin/activate && python manage.py runserver 0.0.0.0:8000"
attach-daemon = sh -c "cd /var/www/application/ ; source
/srv/env/bin/activate && python manage.py qcluster"
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/5fc9c244-b593-46d4-8fe8-734269936c52n%40googlegroups.com.