Spring profiles

52 views
Skip to first unread message

David Rodriguez Gonzalez

unread,
Aug 14, 2017, 5:15:24 AM8/14/17
to cas-...@apereo.org
Hi everyone,

We are setting up CAS 5.1.2 profiles in order to configure properties per environment.
Although Spring is reading the profile we are passing through command line and that are properly defined in the application.yml, the last profile defined in the yaml file is chosen to get the properties from.

Any ideas? How are you doing it?

Thank you|
David

dkopy...@unicon.net

unread,
Aug 14, 2017, 6:21:21 AM8/14/17
to cas-...@apereo.org
--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAFGxCisLOL8eWAZjsSq4UDNXJHp%3DYi%3Dre8hfA0A8MhfXb7AgkA%40mail.gmail.com.

David Rodriguez Gonzalez

unread,
Aug 15, 2017, 5:13:23 AM8/15/17
to cas-...@apereo.org
Ok, looks like it's solved.

The problem was the standalone profile. We have to specify the native one

Thanks a lot!!

On Mon, 14 Aug 2017 at 14:58 David Rodriguez Gonzalez <davidr...@gmail.com> wrote:
Giving you a bit more of information, having a look into https://apereo.github.io/cas/5.1.x/installation/Configuration-Properties.html looks like what I want is "native" but, where should I place my config files? under cas/src/main/resources or in the standalone directory?



On Mon, 14 Aug 2017 at 12:25 David Rodriguez Gonzalez <davidr...@gmail.com> wrote:
yeah, but why if I pass the first one, instead of the last one, through command line args? 
I have it working in a different project, so I was wondering if there is something going on with CAS

David Rodriguez Gonzalez

unread,
Aug 15, 2017, 5:13:23 AM8/15/17
to cas-...@apereo.org
Giving you a bit more of information, having a look into https://apereo.github.io/cas/5.1.x/installation/Configuration-Properties.html looks like what I want is "native" but, where should I place my config files? under cas/src/main/resources or in the standalone directory?



On Mon, 14 Aug 2017 at 12:25 David Rodriguez Gonzalez <davidr...@gmail.com> wrote:
yeah, but why if I pass the first one, instead of the last one, through command line args? 
I have it working in a different project, so I was wondering if there is something going on with CAS

On Mon, 14 Aug 2017 at 12:21 <dkopy...@unicon.net> wrote:

David Rodriguez Gonzalez

unread,
Aug 15, 2017, 5:13:23 AM8/15/17
to cas-...@apereo.org
yeah, but why if I pass the first one, instead of the last one, through command line args? 
I have it working in a different project, so I was wondering if there is something going on with CAS

On Mon, 14 Aug 2017 at 12:21 <dkopy...@unicon.net> wrote:
Reply all
Reply to author
Forward
0 new messages