Advanced¶
Running Guillotina on another ASGI server¶
Guillotina supports the following ASGI (Asynchronous Server Gateway Interface) servers out-of-the-box:
Use the argument --asgi-server to choose one of the previous servers:
guillotina serve -c config.yaml --asgi-server=hypercorn
You can use any other ASGI server by using guillotina.entrypoint:app as the app and the environment variable G_CONFIG_FILE to specify the configuration file.
Example¶
Running Guillotina on Hypercorn with QUIC support:
G_CONFIG_FILE=config.yaml hypercorn --quic-bind 127.0.0.1:4433 guillotina.entrypoint:app