Friday, May 26, 2017

Send endpoint commands through runserver

Is it possible to send endpoint commands through runserver?

In daphne I can do this:

daphne -v2 -e ssl:443:privateKey=key.pem:certKey=cert.pem main.asgi:channel_layer

but I have to have a worker in a separate process and run redis.

If I could do something like this:

python manage.py runserver -e ssl:443:privateKey=key.pem:certKey=cert.pem


I could use the asgiref.inmemory.ChannelLayer as well as have the server reload itself on code changes (which runworker doesn't do).

I know this functions from a technical standpoint because I've hacked the endpoint information by hand into my virtualenv copy of channels.management\runserver.py but while in the code didn't see an obvious way of doing so from the command line.

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7b3d1131-dbeb-4a4d-a632-292fd37ba3fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment