Hello, thanks for you answers but I cannot manage to make one or the other param to work.
I'm using windows, my cas.properties and prod.properties are on d:/etc/cas/config. I have an application-standalone.properties and application-prod.properties in my /src/main/resources When I try: gradlew clean build run -Dspring.profiles.active=prod in logs I get: 2019-03-20 09:12:52,305 INFO [org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] - <Configuration files found at [\etc\cas\config] are [[file [D:\etc\cas\config\cas.properties]]] under profile(s) [[standalone]]> 2019-03-20 09:12:52,383 INFO [org.apereo.cas.web.CasWebApplication] - <The following profiles are active: standalone> I also tried: gradlew clean build run -Dcas.standalone.configurationDirectory=d:\anotherdir But params doesnt seems to be evaluated. What am I doing wrong ? Thanks ! Jeremy Le mardi 19 mars 2019 16:59:53 UTC+1, Facundo Mateo a écrit : > > Hi jeremy, > > Not sure if your profiles are just for configuration changes. > Generally it is a good practice to separate application configuration from > the app artifact it self. One of the advantages advantage is you don't > need to generate a new app version or build each time you need a config > change. > CAS has several solutions to this. > > In case you want to use configurations files and standalone mode you could > externalize configuration to filesystem. We used to manage configuration > files for each environment this way using: > > -Dcas.standalone.configurationDirectory=<path-to-configuration-files> > > May be this is usefull in your domain. > > Facundo > -- - 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/5380aa3f-0f53-40ea-9e53-1a890502a102%40apereo.org.
