@@FedericoTartarini Hi Federico, just one more thing: I have noticed that the execution time is about 10-15 seconds only; then the app stops. I would need it to go on for a little longer. Is there anyway to change this? Thanks again!
Thanks for the tutorial, I just obtained this error: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
@@FedericoTartarini Yes, I followed all steps exactly in the way you did, but reviewing the log I also found this message :python: can't open file 'app.py'
It is strange since it was working for me. Have you place the files in the right folder? If you try to run the file locally using python is it working?
Thank you very much. Sure you can query data from any cloud database of your choice. Just create a connection with the database and query the data you need.
Hi... Thank you for this. Is it possible to have a trigger for the app anytime a new file is uploaded to the storage bucket? How will one go about it? Also, can one use AWS lambda to deploy plotly dash app? I have tried with no success.
@@FedericoTartarini yes, however there is still a process required to enable running gcloud on the pycharm terminal. Anyways maybe that could be on your next video?
Hi, sorry that it is not clear from the video. But you do not need to use pycharm. I am using the computer terminal via pycharm but you do not need to do so. You can open the computer terminal, navigate to the project directory, and use the same commands as I show in the video.
Very useful video - I am trying to solve a port issue between my dash app and the GCP Container port. I see that you modified the dash app port to 8080. What if I leave it at the default for 8050 (which is the case in my app), and build it through GKE - Can you touch upon these differences . If the app port is different and container exposed port is different, how does that impact and what yaml changes need to be made
Thank you so much. Unfortunately, I never used GKE, but the configuration file should be working in a similar way. You should be able to use the port 8050 and then in the yaml file you just need to write which port you want to expose. Have you tried that? Alternatively, try to follow the same instructions as shown in the video and change the port to 8080. That should work.
@@FedericoTartarini Yes did try it. Build is successful. Run also starts, but the exposed IP is different from the one specified in the app.run_server() - a new IP gets created. And that IP doesnt work, it attempts to connect, but just times out. Let me see if I can paste a few snapshots here. Btw - the technique shared by you in the video works perfectly, thanks for that! At least I have a running app.
Amazing video, thank you. Saved me after spending hours on the internet.
I am glad you found my video useful. Thank you for writing a comment. 🙂
Very helpful and straight to the point! You saved me some headaches 😅. Thanks for sharing!
You are welcome
With your tutorial I could finally deploy mi first web app on Google Cloud!!! You made it super easy and clear!! Thanks a lot! :)
I am very happy to hear that it helped you. Thank you so much for leaving a comment.
All I can say is thank you so much!! I just created my first app.
You are most welcome. I am very happy to hear that my video helped you.
@@FedericoTartarini Hi Federico, just one more thing: I have noticed that the execution time is about 10-15 seconds only; then the app stops. I would need it to go on for a little longer. Is there anyway to change this? Thanks again!
What do you mean it stops? It should not stop
Grande Federico!
Grazie mille
Federico, thank you so much
You are welcome, I am glad you liked my video.
Amazing tutorial, thanks for that.
You're very welcome!
Thanks, its works
I am glad it worked well. Thank you for writing a comment.
Great information. Thanks.
You are welcome. Thank you for leaving a comment.
Excellent work
Thank you so much, I am glad you liked it.
Thanks for the tutorial, I just obtained this error: The user-provided container failed to start and listen on the port defined provided by the PORT=8080 environment variable. Logs for this revision might contain more information.
Hi, you are welcome. Have you followed the step by step instructions as shown in the video?
@@FedericoTartarini Yes, I followed all steps exactly in the way you did, but reviewing the log I also found this message :python: can't open file 'app.py'
It is strange since it was working for me. Have you place the files in the right folder? If you try to run the file locally using python is it working?
one major thing this doesn't mention is the service account and how to grant access
thank you for the video
You're welcome
useful tutorial
Thank you.
Life saver
Glad it helped you.
Thanks for the amazing work!
What if the deployed app connects to data source in the cloud (not Google), can we manage connectivity?
Thank you very much. Sure you can query data from any cloud database of your choice. Just create a connection with the database and query the data you need.
Hi, thanks for the video! can we change the url of the app for one with own domain?
Yes you can. Google has documentation on how to do that
Hi... Thank you for this. Is it possible to have a trigger for the app anytime a new file is uploaded to the storage bucket? How will one go about it?
Also, can one use AWS lambda to deploy plotly dash app? I have tried with no success.
Surely you can do that by using GitHub actions. I have a video on this.
I don't know if you can deploy it using an AWS lambda function
When I do the gcloud build I'm getting the following error 'The user is forbidden from accessing the bucket'
Have you followed all the instruction as shown in the video?
@@FedericoTartarini yes I rewatched the video and it's working now 👍 thanks for the wonderful tutorial
I am glad you found a solution to the problem 🙂
@RangerHitam142 Gaming I can't remember but I think it had something to do with the docker file, a rewatch helps.
hank for this. However, You lost most of us at the gcloud part. What next after installing the gcloud sdk?
Hi, sorry but what do you mean? In the video I show how to deploy it to Google Cloud Run
@@FedericoTartarini yes, however there is still a process required to enable running gcloud on the pycharm terminal. Anyways maybe that could be on your next video?
Hi, sorry that it is not clear from the video. But you do not need to use pycharm. I am using the computer terminal via pycharm but you do not need to do so. You can open the computer terminal, navigate to the project directory, and use the same commands as I show in the video.
It comes with so many errors in each step. Mine stopped at the deployment level. Maybe you could kindly do a separate video on that process
Okay I'll try to create a specific video on that.
It WORKS!!!
Great
Very useful video - I am trying to solve a port issue between my dash app and the GCP Container port. I see that you modified the dash app port to 8080. What if I leave it at the default for 8050 (which is the case in my app), and build it through GKE - Can you touch upon these differences . If the app port is different and container exposed port is different, how does that impact and what yaml changes need to be made
Thank you so much. Unfortunately, I never used GKE, but the configuration file should be working in a similar way. You should be able to use the port 8050 and then in the yaml file you just need to write which port you want to expose. Have you tried that? Alternatively, try to follow the same instructions as shown in the video and change the port to 8080. That should work.
Let me know if it works.
@@FedericoTartarini Yes did try it. Build is successful. Run also starts, but the exposed IP is different from the one specified in the app.run_server() - a new IP gets created. And that IP doesnt work, it attempts to connect, but just times out. Let me see if I can paste a few snapshots here.
Btw - the technique shared by you in the video works perfectly, thanks for that! At least I have a running app.
Sorry to hear that you are still facing some issues. I cannot see one of your comments.
Have you checked on stackoverflow for a solution or in the official Google documentation?
The problem resolved by changing python:3.9.3 to python:3.8
Thank you for letting me know