+ a few PHP folks

On Fri, Apr 28, 2017 at 11:14 AM, Adeel Ahmad <[email protected]>
wrote:

> Hello Justin,
>
> Thank you for the reply.
>
> I have updated my app.yaml file according to the guideline you linked.
>
> runtime: php
> env: flex
>
> runtime_config:
>   document_root: public
>
> # required on some platforms so ".env" is not skipped
> skip_files: false
>
> env_variables:
>   # The values here will override those in ".env". This is useful for
>   # production-specific configuration. However, feel free to set these
>   # values in ".env" instead if you prefer.
>   APP_LOG: errorlog
>   STORAGE_DIR: /tmp
>   MYSQL_DSN: mysql:unix_socket=/cloudsql/zoho-portal-159018:us-central1:z
> oho-portal;dbname=zoho_portal
>   MYSQL_USER: adeel
>   MYSQL_PASSWORD: 118097
>
> beta_settings:
>     cloud_sql_instances: zoho-portal-159018:us-central1:zoho-portal
>
> However, I'm still getting the same error. Could there be anything else
> that I'm missing out?
>
>
> On Friday, April 28, 2017 at 6:13:59 PM UTC+5, Adeel Ahmad wrote:
>>
>> I have set up my Laravel 5.3 project on GAE using gcloud. My app.yaml
>> file looks like this:
>>
>> runtime: php
>> env: flex
>>
>> runtime_config:
>>   document_root: public
>>
>> # required on some platforms so ".env" is not skipped
>> skip_files: false
>>
>> env_variables:
>>   # The values here will override those in ".env". This is useful for
>>   # production-specific configuration. However, feel free to set these
>>   # values in ".env" instead if you prefer.
>>   APP_LOG: errorlog
>>   STORAGE_DIR: /tmp
>>   MYSQL_DSN: mysql:unix_socket=/cloudsql/zoho-portal-159018:us-central1:z
>> oho-portal;dbname=zoho_portal
>>   MYSQL_USER: USER
>>   MYSQL_PASSWORD: PASS
>>
>> However, when I query my database using eloquent I receive this error:
>>
>> SQLSTATE[HY000] [2002] Connection refused
>>
>>
>> I followed this guideline: https://cloud.google.com/sql/d
>> ocs/mysql/connect-app-engine?hl=en_US&_ga=1.259065737.206108
>> 4871.1491404918
>>
>>
>> --
> 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 post to this group, send email to [email protected].
> 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/fcef0e94-16d5-4512-b627-
> 7108fbd2a093%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/fcef0e94-16d5-4512-b627-7108fbd2a093%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Justin Beckwith | Google Cloud Platform | @justinbeckwith
<http://twitter.com/JustinBeckwith> | http://jbeckwith.com

-- 
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 post to this group, send email to [email protected].
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/CADd%3D1Q3Puss4juvp%2BMK9FYQtHATgdq4YfJnZANBLO%2BnGBXQtug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to