I realized that almost all the tutorials I could find on deployment of streamlit apps on GCP are based on docker images, which basically says that containerize your app inside a docker and deploy it on App engine or Compute engine.
But while doing some research I found that we can directly deploy python applications to App Engine without the need for containerizing inside docker. This method is cheaper and much faster and better performance than the docker version.
Did anyone explore this, can you please point such a tutorial to me. Otherwise, I will try to create a tutorial around this.
I deployed the app to GCP APP engine standard environment (without docker), but when I open the url, it is stuck at âPlease waitâ. I tried all the solutions available online sample below:
streamlit run --server.port=8080 --server.address=0.0.0.0 --server.enableCORS=false --server.enableWebsocketCompression=false --server.enableXsrfProtection=false --server.headless=true
Finally I was able to deploy streamlit to Google App Engine in the flexible environment without any docker/container.
The standard environment lacks web socket support which prevents Streamlit app to handle the backend-frontend communications.
I am facing the same problem. This is the complete app.yaml file that you used? because it generated some error when you execute the command of gcloud app deploy
@Orlando_B are you still running into this? I had similar errors but then noticed that when I copied/pasted OPâs app.yaml some important indents were lost and that caused those errors. For example, I received the same in your âunexpected attributeâ error because operating_system should be indented under runtime_config. Hereâs my yaml in case it helps and it runs as of today.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking âAccept allâ, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.