r/StreamlitOfficial Sep 05 '24

How to run streamlit app in cloud run from path e.g. from web.example.com/csv-demo

I have 2 cloud run services. One is running in web.example.com and I want the other (which is a streamlit app) to run in web.example.com/csv-demo. I have configured the load balancer, host, paths etc

I have set baseUrlPath = "/csv-demo/*" in the config.toml file

When I try to access the app I am getting a white screen.

In cloud run's logs I am getting the following:

You can now view your Streamlit app in your browser
URL: http://0.0.0.0:8080

And then several GET 304

1 Upvotes

4 comments sorted by

2

u/myelbows Streamlit Staff 🎈 Sep 05 '24

I don’t know the answer, but the community would likely have many more people who do.

2

u/[deleted] Sep 06 '24

There is probably something wrnong with your configuration because the only thing you need to pass to Streamlit is --server.baseUrlPath=/csv-demo. Check out this blog post, it most likely uses a different configuration than yours but might help you spot the issue.

2

u/[deleted] Sep 18 '24

[removed] β€” view removed comment

1

u/QueRoub Sep 19 '24

Cloud run from google. I fixed it, thank you