Skip to content

Commit b0aaa6f

Browse files
committed
env config file isn't found while setting the application.env via arguments fix #364
1 parent d3a713b commit b0aaa6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jooby/src/main/java/org/jooby/Jooby.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3848,7 +3848,7 @@ private Config buildConfig(final Config source, final Config args,
38483848
moduleStack = moduleStack.withFallback(module);
38493849
}
38503850

3851-
String env = Arrays.asList(system, source).stream()
3851+
String env = Arrays.asList(system, args, source).stream()
38523852
.filter(it -> it.hasPath("application.env"))
38533853
.findFirst()
38543854
.map(c -> c.getString("application.env"))

0 commit comments

Comments
 (0)