[google-appengine] Re: Problems using Cloud Storge in my apllication

2022-06-21 Thread 'Andres Fiesco Casasola' via Google App Engine


It is important to know if you are using a flexible or standard environment 
since flex environment is compatible with PHP 7.2 and 7.3 runtimes, and 
standard is compatible with PHP 8.1, but in its preview phase [1], [2].  
You can use PHP 8.1 in flex environment, but you need to use custom 
runtimes [5] and provide a custom Docker image or Dockerfile from the open 
source community.

How to know if you are in a Standard or Flexible environment:

In your app.yaml, find the runtime line.

If it looks similar to the following: 

runtime: php81 # Replace with php74 to use PHP 7.4

Then you are running under a standard environment [3]. 

And if it looks like this other example: 

runtime: python

env: flex

runtime_config:

python_version: 3

Then you are using a flexible environment for the deployment [4]. 

[1]:https://cloud.google.com/appengine/docs/php

[2]:https://cloud.google.com/appengine/docs/the-appengine-environments   

[3]:https://cloud.google.com/appengine/docs/standard/php-gen2/config/appref 

[4]:
https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#general
  
[5]:
https://cloud.google.com/appengine/docs/flexible/custom-runtimes/quickstart
  

On Tuesday, June 21, 2022 at 10:36:38 AM UTC-5 phu...@gmail.com wrote:

> HI.
>
> PHP 8.1, I dont't know if standard or flexible. Yes, I can connect to 
> Gcloud Storage with web browser.
>
> El lunes, 20 de junio de 2022 a las 20:18:25 UTC+2, Osvaldo Lopez Acuña 
> escribió:
>
>> Are you able to connect locally to Google Cloud Storage? Are you using a 
>> standard or flexible App Engine environment? Which PHP version are you 
>> working on?
>>
>> On Monday, June 20, 2022 at 10:12:07 AM UTC-5 phu...@gmail.com wrote:
>>
>>> Hi all.
>>>
>>> I'm deploying my Yii 2 PHP application in Google Cloud Platform, using 
>>> App Engine. Locally, the app works fine, but it doesn't work at Google 
>>> Cloud. I dont't know how to configure my application to work wit Goocle 
>>> Cloud Storage. I have this code at *config/web.php*:
>>>
>>> 'components' => [
>>> 'assetManager' => [
>>> 'basePath'=>'gs://url-to-my-bucket',
>>> 'baseUrl'=>'@web',
>>> ],
>>>
>>> But I have the next exception:
>>>
>>> [image: excepcion.png]
>>>
>>> Locally, I use this code:
>>>
>>> 'components' => [
>>> 'assetManager' => [
>>> 'basePath'=>'@webroot',
>>> 'baseUrl'=>'@web',
>>> ],
>>>
>>> And it works, but in Google Cloud I have another exception:
>>>
>>> [image: excepcion2.png]
>>>
>>> ¿What can I do? I don't have experience with Yii 2 and also wit Google 
>>> Cloud :(
>>>
>>> Thank you very much, sorry if my English is not very well.
>>>
>>

-- 
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/75bf4488-1dbd-4e8d-9eb1-1327840b81ean%40googlegroups.com.


[google-appengine] Re: Problems using Cloud Storge in my apllication

2022-06-21 Thread 'Andres Fiesco Casasola' via Google App Engine


It is important to know if you are using a flexible or standard environment 
since flex environment is compatible with PHP 7.2 and 7.3, and standard is 
compatible with PHP 8.1, but in its preview phase [1], [2].

How to know if you are in a Standard or Flexible environment:

In your app.yaml, find the runtime line.

If your app.yaml starts with: 

runtime: php81 # Replace with php74 to use PHP 7.4

Then you are running under a standard environment [3]. 

And if your app.yaml starts with: 

runtime: python

env: flex

runtime_config:

python_version: 3

Then you are using a flexible environment for the deployment [4]. 

[1]:https://cloud.google.com/appengine/docs/php

[2]:https://cloud.google.com/appengine/docs/the-appengine-environments   

[3]:https://cloud.google.com/appengine/docs/standard/php-gen2/config/appref 
[4]:
https://cloud.google.com/appengine/docs/flexible/python/reference/app-yaml#general
  
 

On Tuesday, June 21, 2022 at 10:36:38 AM UTC-5 phu...@gmail.com wrote:

> HI.
>
> PHP 8.1, I dont't know if standard or flexible. Yes, I can connect to 
> Gcloud Storage with web browser.
>
> El lunes, 20 de junio de 2022 a las 20:18:25 UTC+2, Osvaldo Lopez Acuña 
> escribió:
>
>> Are you able to connect locally to Google Cloud Storage? Are you using a 
>> standard or flexible App Engine environment? Which PHP version are you 
>> working on?
>>
>> On Monday, June 20, 2022 at 10:12:07 AM UTC-5 phu...@gmail.com wrote:
>>
>>> Hi all.
>>>
>>> I'm deploying my Yii 2 PHP application in Google Cloud Platform, using 
>>> App Engine. Locally, the app works fine, but it doesn't work at Google 
>>> Cloud. I dont't know how to configure my application to work wit Goocle 
>>> Cloud Storage. I have this code at *config/web.php*:
>>>
>>> 'components' => [
>>> 'assetManager' => [
>>> 'basePath'=>'gs://url-to-my-bucket',
>>> 'baseUrl'=>'@web',
>>> ],
>>>
>>> But I have the next exception:
>>>
>>> [image: excepcion.png]
>>>
>>> Locally, I use this code:
>>>
>>> 'components' => [
>>> 'assetManager' => [
>>> 'basePath'=>'@webroot',
>>> 'baseUrl'=>'@web',
>>> ],
>>>
>>> And it works, but in Google Cloud I have another exception:
>>>
>>> [image: excepcion2.png]
>>>
>>> ¿What can I do? I don't have experience with Yii 2 and also wit Google 
>>> Cloud :(
>>>
>>> Thank you very much, sorry if my English is not very well.
>>>
>>

-- 
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/449cedc3-ba38-431b-90a2-f3ec3a505b93n%40googlegroups.com.


[google-appengine] Re: Problems using Cloud Storge in my apllication

2022-06-21 Thread Pablo Nieto
HI.

PHP 8.1, I dont't know if standard or flexible. Yes, I can connect to 
Gcloud Storage with web browser.

El lunes, 20 de junio de 2022 a las 20:18:25 UTC+2, Osvaldo Lopez Acuña 
escribió:

> Are you able to connect locally to Google Cloud Storage? Are you using a 
> standard or flexible App Engine environment? Which PHP version are you 
> working on?
>
> On Monday, June 20, 2022 at 10:12:07 AM UTC-5 phu...@gmail.com wrote:
>
>> Hi all.
>>
>> I'm deploying my Yii 2 PHP application in Google Cloud Platform, using 
>> App Engine. Locally, the app works fine, but it doesn't work at Google 
>> Cloud. I dont't know how to configure my application to work wit Goocle 
>> Cloud Storage. I have this code at *config/web.php*:
>>
>> 'components' => [
>> 'assetManager' => [
>> 'basePath'=>'gs://url-to-my-bucket',
>> 'baseUrl'=>'@web',
>> ],
>>
>> But I have the next exception:
>>
>> [image: excepcion.png]
>>
>> Locally, I use this code:
>>
>> 'components' => [
>> 'assetManager' => [
>> 'basePath'=>'@webroot',
>> 'baseUrl'=>'@web',
>> ],
>>
>> And it works, but in Google Cloud I have another exception:
>>
>> [image: excepcion2.png]
>>
>> ¿What can I do? I don't have experience with Yii 2 and also wit Google 
>> Cloud :(
>>
>> Thank you very much, sorry if my English is not very well.
>>
>

-- 
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/e6a4bf8b-af4f-491e-8f32-7e4c722b3993n%40googlegroups.com.