Closed davedriesmans closed 7 years ago
You are supposed to obtain the needed information from GAE SQL configuration screen. Please notice "Instance connection name" (grey background selection)
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
Please read the following: https://cloud.google.com/appengine/docs/php/cloud-sql/
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 ;)
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 SQLapp-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