Re:How Git servers work, and how to keep yours secure
by epja on Friday March 12, 2021 @05:29PM
(#26441754)
What would be the best practice way of allowing git pushes similar to how heroku handles them? I'm wanting to implement a feature that allows users to push to deploy new themes.
[ Parent
| on HN ]
Re:How Git servers work, and how to keep yours secure
by rovr138 on Saturday March 13, 2021 @10:17AM
(#26447098)
Push to an intermediary location. Use post-receive hook to trigger whatever actions you need. At the end, push that to the server and reload whatever you need.
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks#_po...