Automate the deployment of streamlit app

My new data comes from a database refreshed everyday. So is there anyway to automate the deployment of the stream lit without having to push the streamlit app everyday?

Is your data available online? If not, you may choose to find it a fixed place and try to refer from your code to that fixed place (such as cloud, database etc.) If it is available online, what is the problem, refer to that.

Edit: See this answer.

Hi @Cassin_Thangam_Edwin, welcome to the Streamlit community!

If you are reading from a database, you could always use the ttl argument on @st.cache to expire the results after a certain time period. This way, you get the benefit of caching, but when new daily data arrives, the person who accesses the app after your cache expires populates the new data for everyone.

Best,
Randy

1 Like