Added KEYCLOAK_DEV_PORT env variable for KeycloakServer

This commit is contained in:
Stian Thorgersen 2014-09-11 11:05:29 +02:00
parent 86300e7e86
commit f96e59d085

View file

@ -139,6 +139,10 @@ public class KeycloakServer {
}
}
if (System.getenv("KEYCLOAK_DEV_PORT") != null) {
config.setPort(Integer.valueOf(System.getenv("KEYCLOAK_DEV_PORT")));
}
if (System.getProperties().containsKey("resources")) {
String resources = System.getProperty("resources");
if (resources == null || resources.equals("") || resources.equals("true")) {