git2consul icon indicating copy to clipboard operation
git2consul copied to clipboard

Windows - running example sync content of git2consul.json intro Consul KV

Open polinaltg opened this issue 4 years ago • 0 comments

Hi,

I am working with git2Consul in Windows. I am trying to run the example that was given as "First Step"

there is config git2consul.json { "version": "1.0", "repos" : [{ "name" : "sample_configuration", "expand_keys" : true, "url" : "https://github.com/ryanbreen/git2consul_data.git", "branches" : ["dev"], "ignore_file_extension": true, "hooks": [{ "type" : "polling", "interval" : "1" }] }] }

I put this config in folder where Consul is located (C:\Programs\Consul) in command line I run the next command:

C:\Programs\Consul>git2consul --config-file git2consul.json

this is the out put:

Screenshot_2

instead of getting content of three files from GIT to be synced into Consul KV, I am getting the next key git2consul/config where the value is the content of my git2consul.json config file see below the result of Consul KV

Screenshot_3

what am I doing wrong?

Polina

polinaltg avatar Nov 24 '21 06:11 polinaltg