play-plugins icon indicating copy to clipboard operation
play-plugins copied to clipboard

Override redis settings from application.conf in *.conf

Open johdah opened this issue 10 years ago • 3 comments

I am trying to override my redis settings.

I have the usual redis.uri string in my application.conf but in a few cases we need to have another password. When I try to add the new redis.uri in test.conf as I do with MySQL the plugin still tries to connect to the uri specified in application.conf.

Is it something that I've missed or is it a bug?

johdah avatar May 07 '15 14:05 johdah

@johdah Could you please give more details about your application.conf?

For example, you may need to append include "test.conf" line after setting redis.uri in application.conf.

trumanw avatar May 08 '15 07:05 trumanw

test.conf is an environment specific config that we use on our development server. We have include "application.conf" in the beginning of that file. So we override application.conf with the specific settings for the development server.

johdah avatar May 08 '15 09:05 johdah

Shouldn't it be overriden then if I include application.conf before the custom settings in test.conf.

johdah avatar Jun 10 '15 09:06 johdah