One-click deployment of the hexo blog
It's up to github or coding with one click
Last updated
It's up to github or coding with one click
Last updated
Before you do this, you need to make sure that you have configured SSH keys. If not, you can see the one-click SSH key generation tutorial, which was in the previous article.
You need to right-click git bash in the directory where the install.sh script is stored and run the following command:
You need to copy up.sh into the hexoblog file, which is your blog root directory
然后在存放up.sh脚本的目录中,右键打开git bash运行以下命令:
It is then automatically deployed to your github or coding
If the upload fails you need to check to see if you have installed the latest version of [hexo-script] or configured deploy information in the root directory.
If you don't know how to configure it, check out this tutorial:
First you need to open the root configuration file _config.yml
Find deploy, which is usually in the last line, and change it to the following format
You just need to modify the information behind the repo
After version 1.3 of [heox-script] you do not need to install the upload plug-in yourself, but if an error is reported showing that the upload plug-in was not successfully installed, you need to execute the following command