Simple Git Deploy

from blog Robb Knight • Posts • RSS Feed, | ↗ original
This is a simple way to deploy to a remote server, more for my reference than anything else. Create a new folder on the server and initialise a bare git repository in it. mkdir /root/repos/project-namecd /root/repos/project-namegit init --bare Create a post-receive hook (nano /hooks/post-receive) with this as the contents:...