How does streamlit deploy work?

  • I was trying to deploy my streamlit application.
  • First I had the entire application in a single file which was very messy.
  • When I deployed it it worked fine.
  • Then I refactored the code and it showed me the error
    You do not have access to this app or it does not exist
  • I then created a new repository with the initial one file application. Then again it worked fine.
  • Can anyone be able to explain what mistake I wud have done.

Edit:

I found a fix for the issue. In the refactored code, I had mistakenly left a st.write() funtion in a file that is not in the root folder. Once I removed it, the app deployed without any issues.

But I was able to run the application without any issues in my local system before removing that. Why is that?

Can you share a minimal executable example that shows the issue? I’m not clear how your files and Streamlit commands are arranged so I can’t really say.