Install the gcloud CLI, https://cloud.google.com/sdk/docs/install
Deploy:
PROJECT=my-gcp-project-name
gcloud app deploy --project $PROJECT .
Install the gcloud CLI, https://cloud.google.com/sdk/docs/install
Deploy:
PROJECT=my-gcp-project-name
gcloud app deploy --project $PROJECT .
# 3.13 is not available yet, as of April 2025. | |
runtime: python312 |
import wsgiref.simple_server | |
# The default entrypoint is a WSGI server in main:app. | |
app = wsgiref.simple_server.demo_app | |
# And to support running locally with python main.py: | |
if __name__ == "__main__": | |
with wsgiref.simple_server.make_server("", 8000, app) as server: | |
server.serve_forever() |