Google Cloud Platform Flask Python App Deployment

preview_player
Показать описание
I walk through how to deploy Python Flask applications to Google Cloud Platform as an alternative to Heroku or AWS for PaaS.
1. Create a new project in Google Cloud console
2. Activate cloud shell button (top right)
4. Click on Open Editor (within the Cloud shell)
5. Expand appengine, flexible, hello_world (confirm you can see the .py file for the Flask example)
6. In the console, cd to the hello_world dir and run command: gcloud app deploy
7. If you are asked to set PROJECT_ID, run following command: gcloud config set project [PROJECT_NAME]
8. After a few minutes, your project should be live and it will have a link you can go to access your application!
Рекомендации по теме
Комментарии
Автор

Hey! While watching the vid, I was confused a bit when I saw your command line. Shout out from a fellow Stevenson!

claystevenson
Автор

Thanks man, it helped me a lot! I was kind of lost with the yaml file...

ebertolo
Автор

thanks, helped me with my project. However, for instance, you might know how to like include my sql database read and write?

deejae_music
Автор

Hello, if I want to deploy the python app for some time like a month, I just have to do it in the Cloud Shell as you did, or I should create a VM and do it in that VM's terminal?

alejandroaguilera
Автор

I think I am going mad, I have one project with requests library, it is intalled, but I still get this error when deploying: import requests
, ModuleNotFoundError: No module named 'requests' tried to google around but found no definitive answer

Tocyisback
Автор

Can I clone files in my local folder instead of GitHub?

raychen
Автор

I deploy my flask app, everything works on local host but when I deploy it fails any suggestions?

miguelangelbecerrazarate