Question

Is there a way that I can use my github repo's latest master branch version on my website?

Basically, I want my website (fooscript.com/zombie/) (Notice the directory!) to use my github code instead of me pushing my repo, and then FTPing the files into my host, that way I can just push my tested code and boom, it's already live.

I looked into github pages and CNAME but I don't think that's what I want. (http://blog.teamtreehouse.com/using-github-pages-to-host-your-website)

Was it helpful?

Solution

I assume you don't have full access to your server (e.g. shared hosting). In this case, have a look at deployhq.com or ftploy.com.

If you do have access to your server, you can use GitHub's post-receive hooks. See this StackOverflow question for more information.

Additionally, if you are deploying to Heroku/DigitalOcean/AWS and don't want to bother setting up everything manually, you can use dploy.io. (First repo is free)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top