[google-appengine] Re: How to check the environment if it's Production or Local on App Engine Flex Java?

2016-12-18 Thread Thanasis Delenikas
Sorry for the typo... Possible values: Value.Development or Value.Production. On Sunday, December 18, 2016 at 1:20:02 PM UTC+2, Thanasis Delenikas wrote: > > Check "environment.value()" - possible values: Value.Development or > Value.Development. > > On Wednesday, December 14, 2016 at 6:29:07 PM

[google-appengine] Re: How to check the environment if it's Production or Local on App Engine Flex Java?

2016-12-18 Thread Thanasis Delenikas
Check "environment.value()" - possible values: Value.Development or Value.Development. On Wednesday, December 14, 2016 at 6:29:07 PM UTC+2, Fouad Almalki wrote: > > For example, Is there any system/environment variable that is set > automatically when deploying java flex app on Google Cloud? >

[google-appengine] Re: How to check the environment if it's Production or Local on App Engine Flex Java?

2016-12-18 Thread Fouad Almalki
As a workaround, I added the following to jetty.xml: env.local true Then from the code: public static boolean isLocalEnvironment() { String result = System.getProperty("env.local"); return "true".equals(result); } On Wednesday, December 14, 2016 at 7:29:07 PM UTC+3, Fouad