daphne icon indicating copy to clipboard operation
daphne copied to clipboard

Added load_asgi_app method to CLI class

Open makondratev opened this issue 4 years ago • 1 comments

In compiled projects(using PyInstaller for example) application must be imported during compilation. So you can redefine only this method (like gunicorn's load_wsgiapp) instead of copying whole run() method and rewriting only one line. Hope this will help everyone who compile python projects with daphne server.

makondratev avatar Feb 03 '21 16:02 makondratev

Thanks a lot! That would be great!

makondratev avatar Feb 03 '21 18:02 makondratev