Changing my main script name to 'home.py'

I recently added a new page to my streamlit app. From what I’ve gathered, my main file needs to be named home.py and then the pages folder has the scripts for the different pages of the site. My original app didn’t have the name as home.py, and now that I’m trying to add a new page, it won’t show on the app. Is there a way around this? I want to just create a new file named home.py, but I can’t figure out how to change the name of the main script. Is there a way around this?

If you need to rename your entrypoint file, you should delete your app, then rename the file, and finally redeploy it. If you have already renamed your entrypoint file, try changing the name back so you can regain access to delete the app.

If you just change the entrypoint file name or location, then Community Cloud can’t “see” it anymore, and you get locked out of editing or deleting the app because there is no file for Community Cloud to check for access.