Thanks, Javier!

   - I want to know where the folder of the app resides inside the instance 
   VM. I SSH the instance, but I cannot find where my app files are.


   - What I'm looking for is to run `php artisan migrate` to migrate my DB 
   inside the container itself.
      - Found this tool: https://github.com/GoogleCloudPlatform/php-tools
      - I tried to make it run from a Cloud Build Step however it doesn't 
      work! We need access to the *vendor* folder which is not found inside 
      */workspace* but rather inside the container itself.
   

   - My only option left that I can think of is to curl into an endpoint 
   inside my app that will eventually run the migration. Any other option?


On Friday, June 11, 2021 at 1:17:52 PM UTC+3 Javier (Google Cloud Platform 
Support) wrote:

> Please, can you explain what code you are looking for inside the VM? 
> Regarding your second question, do you want to run the custom script after 
> or before deployment?
> You may find this documentation [1] interesting.
>
> [1] - 
> https://cloud.google.com/build/docs/configuring-builds/run-bash-scripts
>
> On Friday, June 11, 2021 at 11:46:26 AM UTC+2 [email protected] wrote:
>
>> Thanks Javier,
>> Where is the code usually located inside that VM? I tried but couldn't 
>> find it.
>>
>> Also, is there a way to do so via Cloud Build step? In order to automate 
>> everything?
>>
>> On Fri, Jun 11, 2021 at 12:41 PM 'Javier (Google Cloud Platform Support)' 
>> via Google App Engine <[email protected]> wrote:
>>
>>> I understand your App Engine flex app is already deployed. Please SSH 
>>> into the VM of an App Engine Flexible instance [1], you can run your custom 
>>> scripts from there.
>>>
>>> [1] - https://cloud.google.com/sdk/gcloud/reference/app/instances/ssh
>>>
>>> On Friday, June 11, 2021 at 10:02:45 AM UTC+2 [email protected] wrote:
>>>
>>>>
>>>> Hello
>>>> I am using a Cloud Build workflow to deploy my Laravel app.
>>>>
>>>> There is a need to run `php artisan migration` command once the 
>>>> deployment is done.
>>>>
>>>> How can I do that with Google Cloud Build?
>>>>
>>>> Thanks
>>>> Bill 
>>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Google App Engine" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/google-appengine/JTTWNkOLo_A/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected].
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/google-appengine/d0e1e48c-e2d8-4f3f-8e0f-35d0bae200fen%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/google-appengine/d0e1e48c-e2d8-4f3f-8e0f-35d0bae200fen%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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/c4485b8b-efbc-4b9b-adc5-d0d2720cac55n%40googlegroups.com.
  • [google-app... Bilal Haidar
    • [googl... 'Javier (Google Cloud Platform Support)' via Google App Engine
      • Re... Bilal Haidar
        • ... 'Javier (Google Cloud Platform Support)' via Google App Engine
          • ... Bilal Haidar
            • ... 'Abel (Google Cloud Platform Support)' via Google App Engine
              • ... Bilal Haidar

Reply via email to