Saturday, May 26, 2012

A quick note on setting up site hosting at Github

This was actually easier than I'd thought.
  1. Create a new repository (in this case, mltut).
  2. Create a page branch from the admin screen.
  3. Check out the page branch:
    - Make a directory, in this case, mltut-site in my projects directory.
    - Set the origin to, in this case, get@github.com:Vivtek/mltut-pages.git
    - Fetch from origin
    - Check out branch gh-pages
  4. Register the domain (in this case, mltut.com).
  5. Set the IP to 207.97.227.245
  6. Create a file in mltut-site named CNAME containing, in this case, www.mltut.com
  7. Push that file to the branch.
  8. Wait a few minutes for DNS records to get pushed.
And then you have a new site: www.mltut.com.  There isn't much there yet.  The idea is to put the tutorial material into the mltut project, and publish it with as-yet-unspecified tools into mltut-site, which will then get pushed out to the site itself, as though by magic!

No comments:

Post a Comment