OpenSource For You

Deploying your blog on the Web with Github pages

-

Your blog is ready for the world to see. The good news is that GitHub (social code hosting that hackers love) allows you to host your Jekyll-based site for free. I assume you already have a GitHub account; if not, sign up at https:// Jithub.FRP/. You will be making use of GitHub UserL Organizati­on Pages to host your blog.

Create a new GitHub repository as usHrnaPH.Jithub.FRP; in our case, it was Pyth17.Jithub.FRP. Make sure to follow this naming convention, else you will end up with an eTTP 404 Not Found error. In this new repository, the master branch hosts the _deploy folder and serves your blog. The source for the blog is based on the source branch. To set up the instance with GitHub, run the following rake task:

rake setup_github_pages

You will be asked to enter your GitHub pages’ repository URL, which is Jit@Jithub.FRP:0yth17/Pyth17.Jithub.FRP. git, in our case.

You might even be willing to point your own domain to GitHub pages. This is easy to achieve. Under your source GLUHFWRUy, FUHDWH D QHw fiOH QDPHG C1AM(, DQG WySH LQ your custom domain. In this case, I will have it as niti.sh. aepending on whatever registrar your domain is with, point an A record to the IP address 207.97.227.245.

Finally, to deploy the blog, issue the following command: rake generate rake deploy

At this moment, you will receive an email from GitHub, with the subject PaJH builG suFFHssful. In this particular instance, the blog has been successful­ly set up on Pyth17. Jithub.FRP and niti.sh. aon’t forget to commit your blog

changes to the source branch with Git. This is as simple as using the following code: git add . git cRmmit -m ‘FiUVt EORg 3RVt’ git push origin source

Newspapers in English

Newspapers from India