I'm trying to figure out how I can use git to deploy a site.
There are 3 connections in theory:
- [local machine] My local machine for coding
- [gitolite server] Private repo hosting using Gitolite
- [web server] VPS hosting with a clone --bare
git push my code from [local machine] to the [gitolite server] but how do I push my code from [gitolite] to my [web server]
I'd like to automate this so all I have to do is complete a
Is the best way to setup a hook on the [gitolate server] repo to run a
post-receive script? But since it's a
--bare repo does that mean I need to run a
git push from the [gitolite server] to the [web server]'s cloned repo since I can't run a
git pull since the
--bare repo doesn't have a working tree?
Sorry and thanks in advance