I’m beginning to really love git. However, I’m still a newbie especially when it comes to scalable architecture. How do I deploy my files onto my shared server using git?

Steps

  1. Be able to SSH into your server without asking for a password
    • Verify or create a public RSA key (on your machine)
      • This is found (on your machine): ~/.ssh/id_rsa.pub
    • SSH onto your server (via terminal)
      • ssh -p 2222 username@domainname.com
    • Put the key into a authorized_keys file (on your server)
      • This would be found (server): ~/.ssh/authorized_keys

Resources I cobbled together

http://blog.realtweeter.com/use-git-on-hostgator-shared-hosting-account/
http://www.arlocarreon.com/blog/git/push-git-repo-into-shared-hosting-account-like-hostgator/
http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server

Leave a Reply

Your email address will not be published. Required fields are marked *