Leon's Blog

  • Home

  • About

  • Tags

  • Categories

  • Archives

Deployment of Hexo

Posted on 2018-10-20 | In tools

‘Hello world!‘

I am Xiaocong, you can also call me Leon. I am now studying in ECE department of UIUC, pursuing a Master degree. I used to study in Aeronautics and Airworthiness, then turning into Computer Engineering. Passioned in programming, I spent most of the times digging into network and security areas, also learned a bit of machine/reinforcement learning related to computer vision. Willing to receive discussion request on techniques through eamil, leonyu365 AT gmail DOT com.

Start to use my github pages for personal blog and write things I will come into in development and learning. Used to write things on csdn.

deployment of hexo

Tools needed:

  • nodejs(installed by using source code. Node version manager recommended for Ubuntu 16.4 or lower)
  • npm(apt)
  • github repo(github/xyu335/xyu335.github.io)

Procedure:

  1. Create folder for Hexo, i.e. MyBlog
  2. Change working directory to MyBlog
  3. Run ‘hexo init’
  4. Run ‘hexo server’
  5. Enter localhost:4000 in your Chrome to check if Hexo runs successfully on your localhost
  6. Modify _config.yml file in your MyBlog/ directory
1
2
3
4
deploy:
type: git
repository: https://github.com/xyu335/xyu335.github.io
branch: master
  1. Run ‘npm install hexo-deployer-git –save’
  2. Run ‘hexo g’
  3. RUn ‘hexo d’
  4. All static files are generated and pushed to github repo
  5. You can access your blog via url: xyu335.github.io

More tutorials on post blogs can be found on website.

Hello World

Posted on 2018-10-20

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Xiaocong

2 posts
1 categories
1 tags
© 2018 Xiaocong
Powered by Hexo v3.8.0
|
Theme – NexT.Muse v6.4.2