Automated deployment on remote server with git
Some time back, I wanted to setup my server so I could push code to my repositories, and have it automatically deployed to a website root directory after doing a git push from my local machine. I can’t remember where I found the instructions so I can’t give credit to whom I got it from, but here’s how I did it.
This is followed by a tutorial on how to extend this setup to multiple branches and work-trees for “live” and “development” versions of a website.
read more