Deploying Multipage Streamlit into Azure Web App

Hello, I am trying to deploy multipage streamlit app into Azure Web App but I am facing this problem:

My file locations:
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ my_app
β”‚ β”œβ”€β”€ main_page.py
β”‚ β”œβ”€β”€ pages
β”‚ β”‚ β”œβ”€β”€ page_1.py
β”‚ β”‚ β”œβ”€β”€ page_2.py
β”‚ β”‚ └── page_3.py

When I run the main_page.py locally there is no problem I can see the pages inside the sidebar. I did not write any additional code for this part. But when I deploy to Azure Web App I can’t see the sidebar which contains the subpages. How can I fix this?

Hi @Omer,

Thanks for sharing this question!

What startup command did you use in your Azure Web App? Does it point to the main_page.py file? The command should typically look like this:

streamlit run my_app/main_page.py

Hi @tonykip,
Actually I can run the streamlit app using the command you have given. My problem is more about the automatic sidebar inside pages folder. I still can run the home_page.py but the sidebar which automatically appears and navigates me to my_app/pages does not appear. I can only see the home page not the pages under the folder. I deployed it using github and did not create any Docker or Kubernetes. Can this be the reason behind this problem?