+1 for this change, it would be wonderful if this can be done. -- Thanks & Regards
Sreekanth Nair Java Developer On Thu, Sep 15, 2016 at 5:21 PM, Christoph Nenning < christoph.nenn...@lex-com.net> wrote: > > >> Hi, > > >> > > >> Do you have a solution to disable devMode in production environment? > > >> Based on some ENV variable or something? > > > > > > Yes, we register a configProvider in web.xml which disables devMode > based > > > on a system property. > > > > Maybe it would be good to add such feature directly to Struts Core? > > > > > > Yeah, that would surly make it simpler for quite a lot of people. > > How shall we call that property? > > struts.environment? > struts.staging? > struts.production? > > What value(s) shall we use? > Boolean? > Strings like 'prod', 'test', 'dev', 'qa', 'staging'? > > > Make name and value(s) configurable? > > > At work we have 4 staging environments thus our property is not boolean. > > > regards, > Christoph > > This Email was scanned by Sophos Anti Virus >