This works really well for an event space site I manage. It's a simple site that deploys to two places; one prod server, and github. I have two remotes set up in git config: eg:
[remote "origin"] url = https://github.com/natalieolivo/suite116.git fetch = +refs/heads/:refs/remotes/origin/ [remote "prod"] url = "ssh://suite116@suite116.com/var/chroot/home/content/33/7051533/html" fetch = +refs/heads/:refs/remotes/prod/
So when I need to deploy to the prod server I do a "git push prod". When I deploy to github I just do a "git push". No more ftp!
This works really well for an event space site I manage. It's a simple site that deploys to two places; one prod server, and github. I have two remotes set up in git config:
eg:
[remote "origin"]
url = https://github.com/natalieolivo/suite116.git
fetch = +refs/heads/:refs/remotes/origin/
[remote "prod"]
url = "ssh://suite116@suite116.com/var/chroot/home/content/33/7051533/html"
fetch = +refs/heads/:refs/remotes/prod/
So when I need to deploy to the prod server I do a "git push prod". When I deploy to github I just do a "git push". No more ftp!