Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy multiple applications from same project

How can I deploy multiple applications from same or different language/runtime originating from a single project in google cloud app engine?

like image 644
Akash Mishra Avatar asked Sep 04 '17 11:09

Akash Mishra


1 Answers

Deploying Multiple Services to Google Cloud App engine.

Create the following files in the app root directory

Create app.yaml file with content:

runtime: nodejs14
service: default

Create myserviceone.yaml file with content:

runtime: nodejs14
service: myserviceone

Create myservicetwo.yaml file with content:

runtime: nodejs14
service: myservicetwo

Deploy using command

gcloud app deploy --project your_project_id app.yaml myserviceone.yaml myservicetwo.yaml

This will deploy the default service as well as my service one and my service two. Check out your cloud console.

You can access them using:

https://myserviceone-dot-yourProjectID.appspot.com/ or http://myserviceone.yourProjectID.appspot.com/

https://myservicetwo-dot-yourProjectID.appspot.com/ or http://myservicetwo.yourProjectID.appspot.com/

like image 166
ChamodyaDias Avatar answered Sep 21 '22 03:09

ChamodyaDias