Hey guys,

I was out sick for a couple of days so I could not answer.

@Ray, I am using the latest and greatest CAS 6.2 release. And I do not 
recall in which RC but at some point it was decided to switch from 
camelCase to kebab-case. That is why it is 
cas.service-registry.json.location in my case.

@ste, so you are facing the same issue. Are you sure about the Spring Boot 
behavior? I just tried it (Spring Boot 2.2.8 as CAS 6.2 is using it, too) 
and it works at least for the server.port property:

java -jar ./build/libs/demo-0.0.1-SNAPSHOT.jar --server.port=8080

I set it to 8081 in the application.properties and override it via command 
line parameter. And that's also what I understand from the Spring Boot 
documentation.


On Thursday, June 25, 2020 at 9:43:00 PM UTC+2 ste wrote:

> Hi Paul,
>
> I had the same probleme. What I notice :
>
> If you coment or you remove property in app.properties, the corresponding 
> env var is used. 
>
> But if you have it in the app.properties, property will not be erasse by 
> env var.
>
> But for me is same as other spring-boot app. Maybe what you are tallking 
> about it's a new feature in a newest version of sprint boot ?!
>
> For your purpose use spring boot profil and multi app.properties.
>
>
>
>
>
>
>
>
>
>
>
> Le jeu. 25 juin 2020 à 17:04, Paul Roemer <pa...@vaadin.com> a écrit :
>
>> Hey guys,
>>
>> today we noticed that we are not able to override properties set in some 
>> application properties file by environment variables. 
>> For example, we have some property 'secrect' that we configure with value 
>> 'unknown' in application-production.properties. Now, for the deployment we 
>> want to override the property by setting the env variable SECRET=dontaskme. 
>> But it fails and it's still 'unknown'. On the other hand after removing the 
>> property 'secret' from the application-production.properties, the 
>> environment variable is taken into account and the value is 'dontaskme'.
>>
>> So, does CAS not behave as normal Spring Boot applications when it comes 
>> to property overrides?
>>
>> Cheers,
>>   Paul
>>
>> -- 
>> - 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 cas-user+u...@apereo.org.
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/0e49b715-d2d6-49f4-b33e-01670375343cn%40apereo.org
>>  
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/0e49b715-d2d6-49f4-b33e-01670375343cn%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
- 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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/4350c405-62bc-47dc-9878-832d1f1b7ddbn%40apereo.org.

Reply via email to