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
- 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
- Verify or create a public RSA key (on your machine)
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