pgjones / hypercorn

Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can the ASGI application be specified in the config file?

yrro opened this issue · comments

With gunicorn I found it quite useful to put wsgi_app = mypackage:create_app() into gunicorn.conf.py, that way running the server was as simple as running gunicorn.

With hypercorn it would be useful to have an asgi_app setting to do the same. That way, running my server would be as simple as running hypercorn -c hypercorn.conf.toml.