Deploying Hello world Python App on Google Cloud Platform's App Engine.
Note: Trust me, if I say “App Engine cost you several bucks.” unless you have credits, don’t go further.
1.Go to GCP Console Home,Click on cloud shell icon. it will open shell cmd prompt on bottom screen
- Click on Little pen icon on top right of shell. it will take you to cloudshell UI site.
- Create a new folder by rigth clicking on your root directory.
- Create app.yaml, main.py, requirements.txt files in newfolder directory
├── pythondemo
│ ├── app.yaml
│ ├── main.py
│ └── requirements.txt
in your folder directory, run following command. it will take sometime to deploy your app.
gcloud app deploy
once deployed, run this command and it will show deployed address and paste this address in your browser. it will show deployed python Webapp response.
gcloud app browse