You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if node and ruby applications can use the same configuration environment variables, and same preceding logic. In my particular project I'm using two variables: DATASTORE_EMULATOR_HOST and GCLOUD_KEYFILE_JSON. First have higher priority. If it is unset, datastore client goes to service endpoint specified by content of GCLOUD_KEYFILE_JSON. For node application I need to implement it myself
We do support the datastore emulator variable, and for JSON, try GOOGLE_APPLICATION_CREDENTIALS, which comes from when you authenticate using the gcloud SDK, but you can set the env var manually to point to a JSON key file. That should be supported in Ruby as well.
It would be nice if node and ruby applications can use the same configuration environment variables, and same preceding logic. In my particular project I'm using two variables:
DATASTORE_EMULATOR_HOST
andGCLOUD_KEYFILE_JSON
. First have higher priority. If it is unset, datastore client goes to service endpoint specified by content ofGCLOUD_KEYFILE_JSON
. For node application I need to implement it myselfSee how it is used here for example: https://github.com/GoogleCloudPlatform/google-cloud-ruby/blob/ea2be47beb32615b2bf69f8a846a684f86c8328c/google-cloud-datastore/lib/google/cloud/datastore/credentials.rb
The text was updated successfully, but these errors were encountered: