-
We are trying to merge multiple Please guide if we are missing any reference or any mistake in below mentioned code. webBuilder.ConfigureAppConfiguration((context, config) =>
{
var folder = Path.Combine(AppDomain.CurrentDomain.BaseDirectory);
var path = Path.Combine(folder, "My\\folder");
config.AddOcelot(path, context.HostingEnvironment, MergeOcelotJson.ToFile, optional: false, reloadOnChange: true); // with folder, environment and merging type
}) Our
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @SheruGaur The Q 1
Correct! If you have partial config files, they will be merged only during Ocelot app start. And the same configuration will be available during Docker container life time. The Q 2
This feature is not implemented for partial config files, I have a questions for you.
If your environment is Docker and/or K8s then why not to manage Ocelot app version and its configuration |
Beta Was this translation helpful? Give feedback.
Hi @SheruGaur
The Q 1
Correct! If you have partial config files, they will be merged only during Ocelot app start. And the same configuration will be available during Docker container life time.
The Q 2
This feature is not implemented for partial config files,
ocelot.*.json
!Ocelot is able to track
ocelot.json
on the fly if you use Administration feature or copy theocelot.json
file to app folder manually.Merging partial files on the fly requires a lot of development❕
I have a questions for you.