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 Organization 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:
You will be asked to enter your GitHub pages’ repository URL, which is [email protected]: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 18.104.22.168.
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 successfully 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