GeezerVison is showing github.com — Environment Variable `GAE_APPENGINE_HOSTNAME` not working · Issue #2477 · googleapis/google-cloud-python
Environment Variable GAE_APPENGINE_HOSTNAME not working #2477
Activity
tseaver commented on Oct 1, 2016
@travisoneill Thanks for the report. Where do you see the docs for google-cloud-python referring to that environment variable?
$ cd ~/path/to/google-cloud-python
$ git grep GAE_
$ git grep appspot
Is this from the docs for the gcloud command-line tool? If so, this library is not that thing.
travisoneill commented on Oct 2, 2016
@tseaver It's from the App Engine docs linked above my previous comment for the Python flexible environment runtime:
https://cloud.google.com/appengine/docs/flexible/python/runtime#environment_variables
The following environment variables are set by the runtime environment:
PORT is set to the port that will receive HTTP requests.
GAE_LONG_APP_ID is set to the Project ID associated with your application, which is visible in the Google Cloud Platform Console.
GAE_MODULE_NAME is set to the module name specified in your application's app.yaml, or default.
GAE_APPENGINE_HOSTNAME is set to the hostname for your application, typically your-app-id.appspot.com.
When I print os.environ the key is there 'GAE_APPENGINE_HOSTNAME': '' but just an empty string value. If this is, in fact, intended behavior, I think the docs should be clarified on that point, as they seem to suggest it is available by default.
The other environment variables listed appear to be working.
dhermes commented on Oct 3, 2016
theacodes commented on Oct 3, 2016
To be slightly more helpful, we are changing some of the environment variables in GAE flexible, so we'll update the documentation shortly. :)
Metadata
Metadata
Development
No branches or pull requestsIssue actions