VRAPTOR_ENV is simpler and better.


On Fri, Jan 17, 2014 at 11:54 AM, Lucas Cavalcanti <notifications@github.com
> wrote:

> In
> vraptor-core/src/main/java/br/com/caelum/vraptor/environment/ServletBasedEnvironment.java:
>
> > @@ -35,14 +35,14 @@ public ServletBasedEnvironment(ServletContext context) throws IOException {
> >  	}
> >
> >  	private static String env(ServletContext context) {
> > -		String contextEnv = context.getInitParameter(ENVIRONMENT_PROPERTY);
> > -		if (contextEnv != null) {
> > -			return contextEnv;
> > +		String systemEnv = System.getenv("VRAPTOR_ENVIRONMENT");
>
> "VRAPTOR_ENV"? as in "RAILS_ENV", "RACK_ENV", etc =)
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/caelum/vraptor4/pull/319/files#r8967236>
> .
>



-- 
Rafael Ponte
http://www.triadworks.com.br