On my Google AppEngine (GAE) server, I’d like to do something like this:
if (thisIsTheDefaultServer)
{
// behave normally
}
else
{
// Accept special test-commands, give extra output, etc.
}
is there a way for the server code to determine if it’s the current default version?
Thanks!
I remember hearing the Google App Engine team mention an API to retrieve anything from the dashboard. Unfortunately, I cannot find it at the moment. I think it might have been in this talk: http://www.google.com/events/io/2011/sessions/life-in-app-engine-production.html
I did find one document referring on how to get this information exactly in Java. I did not have enough time to find the Python version.
For Java (http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html):