Google AppEngine (Java) checking the environment. Local or Production
if (SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) {
System.out.println("Production Env");
} else {
System.out.println("Local Env");
}
Written by Marcio Garcia
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Google
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#