Recently, as I have been using a new computer, I should redeploy the blog site whose source code is in my previous computer. Here, I would record the general process of reployment.

1. Install Node.js & Hexo

The process of installment of node.js & hexo is simliar to the process in the last blog:

  • Installing Node.js
    Download the Node.js installer from its offficial website, and install it.
  • Installing Hexo
    1
    $ npm install hexo-cli -g

3. Build Local Blog Site

  • Hexo Initialization

    1
    2
    3
    $ hexo init XXX.github.io
    $ cd XXX.github.io
    $ npm install
  • Clone the remote repository

    1
    $ git clone git@github.com:username/username.github.io.git
  • Install Dependncies based on package.json

  • Clone the themes that your blog site is using

4. Generate the Website

  • Genearte the website, then publish locally

    1
    $ hexo generate
  • Publish the New Blog

    1
    $ hexo server