Hello,

In general, when you run `gcloud app deploy`, your app source code will be 
uploaded to a storage bucket then a docker image will be built for your 
app. After that, this image will be used to deploy containers of your app 
on App Engine servers.

On Monday, January 11, 2021 at 2:47:07 PM UTC+1 Bill wrote:

> Thanks a lot.
>
> I’m a bit confused here. When under App Engine, build takes place on one 
> server and then deployment happens on another server? All this under the 
> umbrella of App Engine? 
>
> On 11 Jan 2021, at 3:41 PM, 'Denis T (Google Cloud Platform Support)' via 
> Google App Engine <google-a...@googlegroups.com> wrote:
>
> 
> Hello Bill,
>
> Specifying the environment variables (env) under options[1] will make them 
> global for your build steps.
> However, if you want to define the environment variables that would be 
> available to your app, you can do that in the "app.yaml" - [2].
>
> Regards,
>
> Denis T.
> _______
> [1]: https://cloud.google.com/cloud-build/docs/build-config#options
> [2]: 
> https://cloud.google.com/appengine/docs/standard/python3/config/appref#environment_variables
> On Friday, January 8, 2021 at 9:35:49 PM UTC+1 Bill wrote:
>
>> The only difference is the env variables.
>>
>> I am considering defining this inside build_cloud.yaml file under 
>> "options" to make them global ones. However, I am not sure Laravel/PHP will 
>> pick up those env variables. I still need to try it out.
>>
>> On Fri, Jan 8, 2021 at 9:24 PM Kaan <kaan...@gmail.com> wrote:
>>
>>> My .02 but keep in mind that I don't use cloud build
>>>
>>> Build your apps to be identity aware, app.yaml doesn't even include the 
>>> app id anymore, the app can know whether it's in staging or production
>>>
>>> So basically, in theory, previously you only needed a build step that 
>>> renamed app.yaml's project ID, now you don't even need it, just deploy to 
>>> staging or production
>>>
>>> On Friday, January 8, 2021 at 1:07:43 PM UTC+3 Bill wrote:
>>>
>>>> Thanks a lot Elliot! That is really so much helpful!
>>>>
>>>> On Fri, Jan 8, 2021 at 12:01 AM 'Elliott (Cloud Platform Support)' via 
>>>> Google App Engine <google-a...@googlegroups.com> wrote:
>>>>
>>>>> Hello Bill,
>>>>>
>>>>> I was able to find the information you need at least to get started. 
>>>>> The following document 
>>>>> <https://www.google.com/url?q=https://cloud.google.com/docs/enterprise/best-practices-for-enterprise-organizations%23project-structure&source=gmail-imap&ust=1610977318000000&usg=AOvVaw0r6j_I2ihRQOqYKvRXOgnY>
>>>>>  
>>>>> 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://www.google.com/url?q=https://cloud.google.com/solutions/policies/designing-gcp-policies-enterprise&source=gmail-imap&ust=1610977318000000&usg=AOvVaw1oeK8VEuT936kqiHWxPYuX>
>>>>> .
>>>>>
>>>>>
>>>>> 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 google-appengi...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/google-appengine/c4760782-abf3-4722-8951-afab3c577fa5n%40googlegroups.com
>>>>>  
>>>>> <https://www.google.com/url?q=https://groups.google.com/d/msgid/google-appengine/c4760782-abf3-4722-8951-afab3c577fa5n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail-imap&ust=1610977318000000&usg=AOvVaw386RILwFdzFucmgvAI33kv>
>>>>> .
>>>>>
>>>> -- 
>>> 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 google-appengi...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/c7dd2ad4-b4ef-494a-aeff-c382250cfa44n%40googlegroups.com
>>>  
>>> <https://www.google.com/url?q=https://groups.google.com/d/msgid/google-appengine/c7dd2ad4-b4ef-494a-aeff-c382250cfa44n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail-imap&ust=1610977318000000&usg=AOvVaw0FM4z9usRBjBZosJY1-SpW>
>>> .
>>>
>> -- 
> 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 google-appengi...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/09b0a16a-250b-45ba-8c61-2775649d2989n%40googlegroups.com
>  
> <https://www.google.com/url?q=https://groups.google.com/d/msgid/google-appengine/09b0a16a-250b-45ba-8c61-2775649d2989n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail-imap&ust=1610977318000000&usg=AOvVaw3aFdrbT3_j0H7EPufFPZdc>
> .
>
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2d4f73dd-9054-4669-a5de-c22c6beebb23n%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