flbyrne
flbyrne

Reputation: 331

How can I deploy multiple flask apps on the same gcp project?

I need to deploy multiple apps on the same project. I am using gcloud app deploy app.yaml --project <project name> to deploy from the folder where everything is for each app, but it's just overwriting in the same url each time.

Upvotes: 0

Views: 314

Answers (1)

JM Gelilio
JM Gelilio

Reputation: 3768

The App Engine service is the solution, you can create a multiple service in App Engine to serve your multiple application. To do this you need to deploy your application with the line of service and the name of your service in your app.yaml, for example:

app.yaml:

service: second-app
runtime: python39

then redeploy:

gcloud app deploy

You can find your App Engine service app URL in this App Engine > Services or the like the format below:

https://SERVICE_ID-dot-PROJECT_ID.REGION_ID.r.appspot.com

Upvotes: 1

Related Questions