How to setup remote website deployment using git the proper way

Years ago I set this up with a bunch of convoluted scripts, and etc. No fun. Today I did a bit of research and found out how to easily setup your web server to pull updates from your git repo anytime you publish to it – the proper way. Here’s how to do it. First, connect to your remote web server ssh youruser@yourserver.com Note, we make some assumptions that you host your site in /var/www/html and that you’ve already added your ssh keys to your git server for both master, and production web server....

January 9, 2021 · 2 min · 321 words · Matt G