Skip to content

Commit

Permalink
Merge pull request #1663 from steve-community/set_spring_profile
Browse files Browse the repository at this point in the history
set spring profile based on app profile
  • Loading branch information
goekay authored Dec 22, 2024
2 parents a34b6d6 + 861ca54 commit e68010f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/de/rwth/idsg/steve/SteveConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ public enum SteveConfiguration {
contextPath = sanitizeContextPath(p.getOptionalString("context.path"));
steveVersion = p.getString("steve.version");
gitDescribe = useFallbackIfNotSet(p.getOptionalString("git.describe"), null);

profile = ApplicationProfile.fromName(p.getString("profile"));
System.setProperty("spring.profiles.active", profile.name().toLowerCase());

jetty = Jetty.builder()
.serverHost(p.getString("server.host"))
Expand Down

0 comments on commit e68010f

Please sign in to comment.