DebugFactor.com | Forum

Is it possible to deploy multiple applications inside one project in google cloud app engine?

Hi, I want to deploy multiple environments (dev, staging, etc.) inside google cloud. What is the right approach to achieve this? Is it possible to have multiple environments in a single project in google cloud?

Yes, it is possible. There is a special parameter called “service” in app.yaml, which defines the service name. You change the value of this parameter to deploy the same application as different services.

service: sandbox
runtime: PHP 
env: flex 

By default, if the service parameter is not specified in app.yaml file (and if not specified while running gcloud app deploy), the ‘default’ service name will be used. You may even maintain separate env-app.yaml for each env and deploy them as gcloud app deploy env-app.yaml.

Hope this helps.