Hello everyboy, I'm trying to make two different profiles on my cas project:
1 profile for development environment 1 profile for production For the moment I have tested cas by using the default 'standalone' profile. SO I have created an application-standalone.properties, everything works fine and configuration inside that file works fine. Now I would like to create a more production oriented configuration: application-dev.properties and application-prod.properties for example and tell gradlew to build cas using one or the other configuration file. In my other springboot projects, I only have to use on the vm parameter: -Dspring.profiles.active=dev for example and the war generated take the application-dev.properties file I'm trying the same thing with gradlew: gradlew.bat clean build -Dspring.profiles.active=dev But it does nothing (I know it would be too simple :) ), I try to find more info on the documentation but I found that's the profiles configuration is not quite clear: https://apereo.github.io/cas/6.0.x/configuration/Configuration-Server-Management.html Also it's not recommended to overlay default bootstrap.properties (witch sets spring.profiles.active=standalone) and application.properties so I try to avoid those solutions How do you do to build with different configuration file ? Thanks ! Jeremy -- - 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/ff0d4f4e-5f64-40ed-964e-63f70827d5a4%40apereo.org.
