Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,109 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,109 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.