App not updating if GitHub repo is private

Hi!

I have a webapp deployed on Streamlit Cloud and the app is public. If my GitHub repo is public, and I commit any changes there, these are immediately reflected in my deployed app.

However, if the repo is private and I make any changes, these are not reflected in the deployed app. I either need to redeploy or change visibility of the repo to public.

I understand Streamlit has access to my repos (even private ones) and want to know if I can have the app repo be private in GitHub but have the app update automatically when there’s any commit

Thanks!

I encountered the same problem, just like you thought that Streamlit had access to my private repos, but it didn’t.

  1. Go to share.streamlit.io
  2. Check if a source control account is enabled like in this photo:
  3. If not, connect and authorize Streamlit via your GitHub account.

This should make git commits update the app directly, even if it’s a private repo.

Thank you for your response!

I believe step 2 is properly configured for my account, but didn’t work.

I’ll give it another go though, and unlink/re-link my account just in case

Thanks!

I had the same problem again today even while enabling the source control account, I solved it by deleting the app and re-deploying it.
Give it a try!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.