GAE API to find where the app is running - local machine OR gae cloud
Posted
by Jayesh
on Stack Overflow
See other posts from Stack Overflow
or by Jayesh
Published on 2010-06-03T02:54:59Z
Indexed on
2010/06/03
3:04 UTC
Read the original article
Hit count: 371
google-app-engine
Hi,
I have a Google App engine application that I want to work differently depending upon if it is running in my local dev environment (i.e. with dev_appserver.py) as against running in actual GAE cloud.
Currently I use a flag variable that I manually toggle to achieve that. But I am sure one day I will forget to change it and will lead to problem. So I would like to know if there is an API or some other way to figure out where the GAE app is actually running?
Thanks.
© Stack Overflow or respective owner