pgjones / hypercorn

Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.
MIT License
1.17k stars 104 forks source link

Can the ASGI application be specified in the config file? #229

Open yrro opened 6 months ago

yrro commented 6 months ago

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.