It used to be that you could use an include statements in the struts.xml, e.g.
. We used this to allow for
different settings in production and development by importing different files.
This could be a nice “pair” if you can specify environment variables.
- adam
--
__
Would be great to start with :-)
--
Thanks & Regards
Sreekanth Nair
Java Developer
On Thu, Sep 15, 2016 at 8:30 PM, Lukasz Lenart
wrote:
> Maybe the first step should be just simple, use ENV in
> struts.xml/struts.properties
>
>
>
> wdyt?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http:/
Maybe the first step should be just simple, use ENV in
struts.xml/struts.properties
wdyt?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For addition
Adding one of my thought, it would be better if we can externalize the
System ENV property key name (in Christoph code the key is "environment"),
because the application may already having some key to set its environment
to prod, staging or dev, etc.
eg: if we are using spring its having *spring.pr
> >> 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.
>
> Can you share source code of the provider?
>
>
D
2016-09-15 13:35 GMT+02:00 Christoph Nenning :
>> 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.
Can you share source co
+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 environme
> >> 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
2016-09-15 13:35 GMT+02:00 Christoph Nenning :
>> 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
> 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.
regards,
Christoph
This Email was scanned by Sophos Anti Virus
Hi,
Do you have a solution to disable devMode in production environment?
Based on some ENV variable or something?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
-
To unsubscribe, e-mail: user-unsubscr...@struts.a
11 matches
Mail list logo