Hi Could not get it working with cas.standalone.configurationDirectory
Managed to get it working by moving ALL my properties to a application-standalone.properties file and NOT passing in any SPRING_PROFILES_ACTIVE or only pass in SPRING_PROFILES_ACTIVE=standalone (the default). Then the CAS app looks inwards and uses this file. So it seems that you can not use adhoc profiles to load profile properties from inside the WAR. As you say this is somewhat inconsistent with Spring Boot default behaviour. Especially inconsistent as the page at https://apereo.github.io/cas/6.0.x/configuration/Configuration-Server-Management.html says " the internal files are loaded per the spring boot rules" and links to rules that say this is possible. In fact the CAS page does say "(e.g. .properties would not be loaded from classpath but `application-.properties` would)." It seems that only application-standalone.properties would only ever be loaded.......? Maybe this is a bug? Cheers On Mon, 16 Sep 2019 at 11:09, Andy Ng <[email protected]> wrote: > > Hi Nomit, > > Sorry previous was on my phone so it is hard for me to verified the pathing, > classpath:/src/resources definitely is incorrect, my bad. > > The relation is: > > classpath:/ = src/main/resources > > So, maybe you can try setting it as: > cas.standalone.configurationDirectory=classpath:/ > > And put your stuff inside src/main/resources/xxxxx.properties > > See if that works... > > Cheers! > -Andy > > > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to a topic in the Google > Groups "CAS Community" group. > To unsubscribe from this topic, visit > https://groups.google.com/a/apereo.org/d/topic/cas-user/VFlaLAvs_2U/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/7ca213e0-925c-49e7-92d5-6811f6cb178a%40apereo.org. -- Nomit Babraa Working Pattern: Student Lifecycle Project: Monday -Wednesday AM. CiCS: Wednesday PM - Friday. Tel: 0114 222 1162 -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAM%2BWGxLauH0JLW4%3DCunJs8u8sDqdr8NtptiaYfX6ZWKeqJ_4jQ%40mail.gmail.com.
