Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing ServletBasedEnvironment order #319

Merged
merged 2 commits into from
Jan 18, 2014

Conversation

Turini
Copy link
Member

@Turini Turini commented Jan 17, 2014

as discussed here 40a8876#commitcomment-5098886

@ghost ghost assigned Turini Jan 17, 2014
String contextEnv = context.getInitParameter(ENVIRONMENT_PROPERTY);
if (contextEnv != null) {
return contextEnv;
String systemEnv = System.getenv("VRAPTOR_ENVIRONMENT");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"VRAPTOR_ENV"? as in "RAILS_ENV", "RACK_ENV", etc =)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 GitHubhttps://github.com//pull/319/files#r8967236
.

Rafael Ponte
http://www.triadworks.com.br

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool :) done here ac82df7

@lucascs
Copy link
Member

lucascs commented Jan 18, 2014

🚢

Turini added a commit that referenced this pull request Jan 18, 2014
@Turini Turini merged commit 39437b4 into master Jan 18, 2014
@Turini Turini deleted the changingServletBasedEnvironmentOrder branch January 18, 2014 16:32
@Turini Turini added this to the 4.0.0-RC1 milestone Mar 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants