DeploymentΒΆ
Since this essentially is a Channels application, you should see their docs on deployment for examples. But there are a few additional things you should be aware of when you deploy this application.
Warning
Do not use the
channels.layers.InMemoryChannelLayerin your live setup. This should solely be used for a test/development setup. See the Channels docs on layers for alternatives.Run the worker for the channels you have set up in your
routing.py. If you chose to use the samerouting.pyas specified in the example project, you can run the following command.$ python manage.py runworker websocket
See the Channels docs on worker for more information.
Prune any stale presences periodically. See the Presence section and the django-channels-presence docs for more information on that.