Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6147121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:03:32+00:00 2026-05-23T19:03:32+00:00

On my Google AppEngine (GAE) server, I’d like to do something like this: if

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T19:03:33+00:00Added an answer on May 23, 2026 at 7:03 pm

    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):

     if (SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) {
       // do something that's production-only
     }
     String version = SystemProperty.version.get();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to this: http://code.google.com/appengine/docs/whatisgoogleappengine.html it seems that GAE only uses Datastore to store data,
So I've got this server application running on Google AppEngine that I want to
I'm building application on Google AppEngine with Java (GAE/J) and all my data will
To learn GWT and Google AppEngine (GAE) I'm trying to create a simple application
This thread seems dead, too: http://groups.google.com/group/google-appengine-java/browse_thread/thread/80d014fd5abd526f Here's what happens: locally, by mvn gae:run, application
Currently I'm building my Java Web Application on Google AppEngine (GAE), but due to
I'm using the latest tools provided by the latest Google App Engine (GAE) environment,
I'm using Google appengine for developing an web application that is meant to be
I am using the Google Appengine remote shell, with Python. I am walking through
I'm working on a Google AppEngine project and I've changed my data format, so

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.