Creating the directory.
let’s create the directory which is used the root directory of your hexo project.
Pulling your git repository.
1 | > git init |
You just initialize the git in your hexo project and connect with you remote repository. and finally pulling the codes.
Installing node modules.
You should install the packages for using hexo. I think the two commands would operate well each alone. I just always do these both.
1 | > npm install |
Downloading your own hexo theme
If you use the hexo theme, then download it from somewhere and copy and paste to ‘directory/themes/‘ and You should check the ‘config.yml’ file name whether it is needed transition or not.
1 | > mv [YOUR THEME] ./directory/themes |
Launching local Hexo server
Let’s check your thing is operated well or not.
1 | > hexo server |
Installing Git deploy package.
You gotta need to install ‘hexo-deployer-git’ package to upload your hexo project to remote using git.
1 | > npm install --save hexo-deployer-git |
Uploading Hexo
1 | > hexo deploy --generate |
Git source upload
1 | > git add . |
You should know one thing that the real source code and hexo project are sperated. so you gotta push both two repositories.