How I set up my blog site
This post record the steps I set up this blog site.
Catalog
Env preparation
Installation
- Install Node.js
- Install Git
Use following command to confirm:
1 | $ node -v |
Github
Connection
Create and copy SSH key:
1 | $ ssh-keygen -t rsa -C "GitHub email" |
Copy the contents
Go to Github -> Settings and Add SSH key
Confirm the connection:
1 | $ ssh -T git@github.com |
Setup Github Pages repository
Create Username.github.io(your URL)
Install Hexo
1 | $ npm install -g hexo-cli |
Setup a local workspace:
1 | $ git init |
launch local server:
1 | $ hexo cl |
or use following command to specify port:
1 | $ hexo server -p 5000 |
visit http://localhost:4000
Deploy to Github server
Install hexo-developer-git:
1 | $ npm install hexo-deployer-git --save |
edit _config file’s Deployment part:
1 | deploy: |
then run in bash:
1 | $ hexo d |
How I set up my blog site
http://chen-yulin.github.io/2022/04/11/How-I-set-up-my-blog-site/