caddy-git icon indicating copy to clipboard operation
caddy-git copied to clipboard

Testing, getting errors

Open greggman opened this issue 7 years ago • 2 comments

so first I wanted to just test so I created a folder, I manually cloned my repo

 git clone ssh://test.com/path/to/repo test

The Caddyfile had this

  git {
    repo ssh://test.com/path/to/repo
    path ../
    interval -1
    hook /pull
    hook_type generic
    then_long command "npm run build"
  }

but when I ran caddy I got this error

017/08/29 15:57:52 another git repo 'ssh://test.com/path/to/repo.git' exists at .

No idea what that means.

If I comment out the git section above my Caddyfile works fine

Any ideas?

greggman avatar Aug 29 '17 07:08 greggman

Not sure what happened, but I accidentally referenced your issue in mine. This is incorrect.

electricduck avatar Sep 02 '17 17:09 electricduck

Try this Use https url if public repo. e.g. https://test.com/path/to/repo. Or this format if it is private repo. [email protected]:user/repo.

abiosoft avatar Sep 02 '17 17:09 abiosoft