caddy-git
caddy-git copied to clipboard
Testing, getting errors
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?
Not sure what happened, but I accidentally referenced your issue in mine. This is incorrect.
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
.