Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Matthew Root
Matthew Root
5,392 Points

Github and auto-deploy

I am wanting to use github with my projects but I am not sure how to go about deploying my merges to my hostgator server. Can anyone break it down for me?

2 Answers

David Axelrod
David Axelrod
36,073 Points

Hrmm. On heroku you can just link your github account and then check auto deploys and everything works out swimmingly. Maybe give them a try if its mission critical

Kevin Korte
Kevin Korte
28,148 Points

I don't think hostgator supports this. However, you could possibly ssh into your hostgator account, and than copy your github repo into your hostgator account via ssh. It's not pretty, but I think it's possible, if your hostgator account allows ssh access.

Honestly, it's probably just easier to use filezilla. As David said, some other webhosts are better integrated with Github, such as Heroku. You pay more, but it's easier to update. Hostgator is really a budget host, and so their offerings are limited.

Matthew Root
Matthew Root
5,392 Points

Thanks, you mean using filezilla instead of github?

Kevin Korte
Kevin Korte
28,148 Points

No, use github as a version tracker, but use filezilla to move files into your server. So it might look something like you might push production ready code to github, and than move them to the server via filezila.

You can also check out heroku, as it has one of the best github integrations I've seen. Pushing new code can be as simple as git push heroku master. I've use deployed from a git repo to a digital ocean droplet via SSH so I know that's possible. to.