caddy-git
caddy-git copied to clipboard
question: Recommended way to use this plugin with caddy-systemd
First off, thank you so much for creating this plugin, if I can get it set up the way I want it'll be a huge time saver + reduce my maintenance effort on my personal website!
What I would like to accomplish is having my app (which runs through caddy-systemd) redeploy on every push to my GitHub repository - it seems fairly straightforward to do this with a systemctl caddy reload
at the end of my pull.
However, the documentation says that when caddy starts up, a git pull will occur as well. I'm concerned about a potential infinite loop, where reloading caddy causes a git pull, which causes a reload, etc.
Is there a better way you'd recommend using both of these together? Is my concern about an infinite loop unfounded because the commands won't run if there's no change to the repository?
Thanks!