Hello Bill,

I was able to find the information you need at least to get started. The 
following document 
<https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations#project-structure>
 
describes what a project is and how you may use one or more than one 
depending on your use case. Since you want two urls, each environment has 
its own URL.

“You control the scope of your projects. A single project might contain 
multiple separate apps, or conversely a single app might include several 
projects. Projects can contain resources spread across multiple regions and 
geographies.”

The article goes on and provides a recommendation…

“to have one project per application per environment. For example, if you 
have two applications, "app1" and "app2", each with a development and 
production environment, you would have four projects: app1-dev, app1-prod, 
app2-dev, app2-prod.”

The reason is that the environments will be isolated from each other to 
prevent changes from one application affecting the other.

The article gives an example that you may “grant all developers access to 
development projects but restrict production access to your CI/CD pipeline.”

The article goes on that your project structure depends on your business 
case and requirements.

There is an example structure here 
<https://cloud.google.com/solutions/policies/designing-gcp-policies-enterprise>
.


You also asked about having separate app.yaml and cloud_build.yaml files. 
>From my understanding, it is possible to have separate configuration files 
in each project. 

I hope I provided the information you need.




On Thursday, January 7, 2021 at 9:52:54 AM UTC-5 Bill wrote:

> Hello,
>
> I have a Laravel app with app.yaml and cloud_build.yaml files. I need to 
> deploy the master branch to production and dev branch to staging. Such that 
> each environment has its own URL.
>
> Do I need a separate Cloud Project for each environment? Or I can use the 
> same App Engine to host both the Production and Staging?
>
> If I need two separate projects, how can I have two app.yaml and two 
> cloud_build.yaml files?
>
>
> Regards
> Bilal Haidar
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/c4760782-abf3-4722-8951-afab3c577fa5n%40googlegroups.com.
  • [google-ap... Bill
    • [goog... 'Elliott (Cloud Platform Support)' via Google App Engine
      • R... Bilal Haidar
        • ... Kaan
          • ... Bilal Haidar
            • ... 'Denis T (Google Cloud Platform Support)' via Google App Engine
            • ... 'Denis T (Google Cloud Platform Support)' via Google App Engine
              • ... Bilal Haidar
                • ... 'methkal' via Google App Engine
                • ... Bilal Haidar
                • ... 'Daniel (Google Cloud Support)' via Google App Engine
                • ... Bilal Haidar

Reply via email to