struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sreekanth S. Nair" <sreekanth.n...@egovernments.org>
Subject Re: How to disable devMode in prod
Date Thu, 15 Sep 2016 12:12:16 GMT
+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.Nenning@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message