-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webapp launcher page #301
Comments
In practice, a Apart from that, @rouk1 may have found a way to let uvicorn start the browser itself, which would solve the issue more directly: lifespan events. |
Nice! So, I let you close this issue and open another one if you would like to investigate lifespan events. |
When the webapp is launched, we would like to open a browser so that the user can start using the application without intervention.
Serving the webapp is a blocking call, therefore the browser must be open before. But this order is inconsistent with the availability of the webapp, therefore the browser displays an error.
Instead of opening a connexion directly to the webapp, we suggest that a local HTML file is open instead, acting as a launcher. This HTML file would contain code to poll until webapp availability, then switch to the target URL.
Here is a naive implementation of such launcher page:
Query parameters could be used to parametrize this page, passing the target URL.
The text was updated successfully, but these errors were encountered: