Thanks a lot :-) And thanks for the help!

Den torsdag den 21. september 2017 kl. 21.21.28 UTC+2 skrev Takashi Matsuo 
(Google):
>
> And FYI, I filed an issue on the community articles:
> https://github.com/GoogleCloudPlatform/community/issues/248
>
> On Thu, Sep 21, 2017 at 12:15 PM Takashi Matsuo <tma...@google.com 
> <javascript:>> wrote:
>
>>
>> Yeah that sounds like a plan to me for now.
>>
>> On Thu, Sep 21, 2017 at 12:10 PM Søren Malling <soren....@gmail.com 
>> <javascript:>> wrote:
>>
>>> Hi Takashi,
>>>
>>> Thanks for that information - it explains why I haven't been able to 
>>> make it work for 2 days :) Could you be so kind to add a note to the PHP 
>>> examples, where this is mentioned? 
>>>
>>> I'm using Gitlab for CI/CD, so how would you recommend this done? Create 
>>> a service account for a local cloud_sql_proxy to setup doing deployment of 
>>> the app? And wait with database migration to the *gcloud app deploy* is 
>>> done ? 
>>>
>>>
>>> Den torsdag den 21. september 2017 kl. 20.04.37 UTC+2 skrev Takashi 
>>> Matsuo (Google):
>>>
>>>>
>>>> Also, in any case, I don't recommend invoking the db migration during 
>>>> the deployment process, because it's dangerous.
>>>> What happens if the db migration succeeds, and then the deployment 
>>>> fails? Your app will be in a broken state.
>>>>
>>>> So now the recommended way is to use cloud_sql_proxy locally and do the 
>>>> db migration. Yeah it's cumbersome, but it's all we have right now.
>>>>
>>>> We're planning to provide a tool that can invoke a script with the 
>>>> deployed image. Please stay tuned.
>>>>
>>>> On Thu, Sep 21, 2017 at 10:59 AM Takashi Matsuo <tma...@google.com> 
>>>> wrote:
>>>>
>>> Are you trying to do DB migration with the post-deploy-cmd?
>>>>>
>>>>> It won't work because we don't run post-deploy-cmd any more, with the 
>>>>> new build pipeline.
>>>>>
>>>>> What gcloud version are you using?
>>>>>
>>>>> If you're using the old build pipeline (you can do that by setting a 
>>>>> flag `gcloud config set app/use_runtime_builders false`), it still 
>>>>> invokes 
>>>>> post-deploy-cmd.
>>>>> In that case, post-deploy-cmd should be able to access the envvars.
>>>>>
>>>>> Can you show me the build logs, or anything that shows how your app is 
>>>>> failing?
>>>>>
>>>>>
>>>>> On Thu, Sep 21, 2017 at 12:03 AM Søren Malling <soren....@gmail.com> 
>>>>> wrote:
>>>>>
>>>> Just le me try and write that again - the last message was unreadable..
>>>>>>
>>>>>> Yes. When trying to run my apllication via the URL, it can't read the 
>>>>>> env and therefore can't access the database. 
>>>>>> And when running post-deploy-cmd from my composer.json (as described 
>>>>>> for the Symfony example), the FLOW_CONTEXT and MYSQL_* enviroment 
>>>>>> parameters are not passed to the processes.
>>>>>>
>>>>>>
>>>>>>
>>>>>> Den torsdag den 21. september 2017 kl. 08.57.08 UTC+2 skrev Søren 
>>>>>> Malling:
>>>>>>>
>>>>>>>
>>>>>>> Do you have actual problems connecting to the db?
>>>>>>>>
>>>>>>>
>>>>>>> Yes. My application don't running can't read the env and the when 
>>>>>>> running post-deploy-cmd from my composer.json, the FLOW_CONTEXT and 
>>>>>>> MYSQL_* 
>>>>>>> enviroment parameters are not passed to the processes
>>>>>>>
>>>>>>>> -- 
>>>>>> 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 post to this group, send email to google-a...@googlegroups.com.
>>>>>
>>>>>
>>>>>> Visit this group at https://groups.google.com/group/google-appengine.
>>>>>> To view this discussion on the web visit 
>>>>>> https://groups.google.com/d/msgid/google-appengine/576b9a13-0ff5-451b-8b78-426aeb45a376%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/google-appengine/576b9a13-0ff5-451b-8b78-426aeb45a376%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>>>>> -- Takashi
>>>>>
>>>> -- 
>>>> -- Takashi
>>>>
>>> -- 
>>> 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 <javascript:>.
>>> To post to this group, send email to google-a...@googlegroups.com 
>>> <javascript:>.
>>> Visit this group at https://groups.google.com/group/google-appengine.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/6df7c374-2327-413e-9a70-dba61669b178%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/google-appengine/6df7c374-2327-413e-9a70-dba61669b178%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> -- 
>> -- Takashi
>>
> -- 
> -- Takashi
>

-- 
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 post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a55b2ca1-fa1e-4fd8-9057-7a030a53950b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to