Multiple different solara apps under Fastapi endpoints?
Hi, I can follow the explanation from the docs to integrate one solara app into an existing FastAPI application
https://solara.dev/docs/deploying/self-hosted
and
As this is using one environment variable, i am not sure how to extend this to have two independent solara apps on two different endpoints.eg.
and
Is there an easy way to do this, maybe by not using a single env variable?
Thanks a lot.
3 Replies
this is not currently something we support although in some parts of the code we have taken this into account, it is not something we plan to support on the short term (see also https://github.com/widgetti/solara/issues/27 )
Can I ask why you would need/want this? I think it should also be easy to have multiple "subpages" instead of separate apps
samiit
<:issue_closed_completed:979047130847117343> [widgetti/solara] Serving App via FastAPI
Hi everyone,
I would love to have some documentation hints at how to serve a wonderful SOLARA app using FastAPI.
In the example shown here, I don't know how to specify the python file name that contains the app. I guess the first argument of
app.mount
, i.e., /solara
is the directory containing the python file containing the app.
Thanks,
SamCreated
I hadnt seen this, thanks.
I just want to be able to quickly test different solara apps (or versions of the same) on different endpoints. I think one could put them under pages/ in a multipage app and then access the pages directly.
I.e. https://solara.dev/apps/multipage/page1 and https://solara.dev/apps/multipage/page2 but this will give someone access to all pages.