Hi @sojohan, I am not an Azure expert, but can you double check you don’t need any special configuration to enable Websockets? Is it supposed to work out of the box on Azure? Can you share the content of the network tab? Chrome tools -> Network
I had a lot of problems before eventually getting it working.
The most important to solve was to discover that you need to switch “Always on in the configuraiton settings”. Otherwise your docker container will be closed down after X minutes of inactivity. Leading it to have very, very long response times.
I also set folderWatchBlacklist = [''] in the config.toml file.
I also setup a script to ping my web site every 5 minutes to keep it being responsive. It’s running inside the docker container. I’m actually not sure this is needed. But I still do it.
Then I did a lot of other things to solve this. But some where because I did some very special things with streamlit. So these where changes to the code and should not be relevant to you.
I would really like there to be a guide and could maybe also find the motivation to write one the next time i deploy a streamlit app to Azure via Docker. But I don’t know when that will be unfortunately.
@Marc, thank you for your response. I will incorporate your suggestions and hopefully it will work. Should I get it work, I will report back here.
By the way, your awesome-streamlit site is awesome and I reference it from time to time. Thank you!
So I have been able to successfully deploy to Azure, thanks to @Marc’s suggestions and his ‘awesome-streamlit’ site. Basically, I created a .streamlit folder in my project folder which then holds my configurations and changed the port to 80. After pushing my docker image to Azure web app service, I added a new setting named 'WEBSITES_PORT" with value 80. Hope it helps @sojohan.