KEYCLOAK-16049 Running './kc.sh --profile=prod' still uses dev profile

This commit is contained in:
mposolda 2020-10-23 10:52:27 +02:00 committed by Pedro Igor
parent c122e72178
commit e0ea961599

View file

@ -56,8 +56,8 @@ public class MainCommand {
@Option(names = "--profile", arity = "1", description = "Set the profile. Use 'dev' profile to enable development mode.", scope = CommandLine.ScopeType.INHERIT)
public void setProfile(String profile) {
System.setProperty("kc.profile", "dev");
System.setProperty("quarkus.profile", "dev");
System.setProperty("kc.profile", profile);
System.setProperty("quarkus.profile", profile);
}
@Option(names = "--config-file", arity = "1", description = "Set the path to a configuration file.", paramLabel = "<path>", scope = CommandLine.ScopeType.INHERIT)