Skip to content

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

Description

@polinaltg

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions