Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
polinaltg opened this issue Nov 24, 2021 · 0 comments
Open

Comments

@polinaltg
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant