We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9fcc80 commit 2ab5f31Copy full SHA for 2ab5f31
bolt/bolt/__main__.py
@@ -1,4 +1,5 @@
1
from .cli import cli
2
3
+# Make the CLI available as `python -m bolt`
4
if __name__ == "__main__":
5
cli()
bolt/bolt/wsgi.py
@@ -2,15 +2,10 @@
from bolt.internal.handlers.wsgi import WSGIHandler
-def get_wsgi_application():
6
- """
7
- The public interface to Bolt's WSGI support. Return a WSGI callable.
8
-
9
- Avoids making bolt.internal.handlers.WSGIHandler a public API, in case the
10
- internal WSGI implementation changes or moves in the future.
11
+def _get_wsgi_application():
12
bolt.runtime.setup()
13
return WSGIHandler()
14
15
16
-app = get_wsgi_application()
+# The default `bolt.wsgi:app` WSGI application
+app = _get_wsgi_application()
0 commit comments