Last Updated: February 25, 2016
·
560
· mangar

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");

}