shpasser / GaeSupportL5

Google App Engine Support package for Laravel 5
MIT License
160 stars 27 forks source link

Db Socket question app-id #67

Closed davedriesmans closed 7 years ago

davedriesmans commented 7 years ago

For the db-socket you want this format:

/cloudsql/app-id:cloud-sql-instance-name

i have an 'unable to find the socket transport \"unix\ ... ' error so want to be sure that my setting is correct.

cloud-sql-instance-name: can be found in SQL app-id: not sure where to find this. is it like appname.appspot.com or the appname from appname.appspot.com ? tried a couple of things here

shpasser commented 7 years ago

You are supposed to obtain the needed information from GAE SQL configuration screen. Please notice "Instance connection name" (grey background selection)

cloudsql_config

skipatrol commented 7 years ago

I can confirm that when running the gae:setup command the highlighted portion in shpasser's screenshot is the format that works for me for the db-socket config - I've never used the keyword "cloudsql" or any forward slashes. The app-id is the GAE project id, in the case of shpasser's screenshot if the intent is to deploy to the same application that's hosting the CloudSQL instance it would be laratest52

shpasser commented 7 years ago

Please read the following: https://cloud.google.com/appengine/docs/php/cloud-sql/

davedriesmans commented 7 years ago

Thanks, that screenshot was perfect. Got it working Also, maybe interesting for those struggling. When manually editing the .env, clear the config cache (php artisan config:clear) before deploying ;)