One-click deployment of the hexo blog
It's up to github or coding with one click
up.sh
You need to right-click git bash in the directory where the install.sh script is stored and run the following command:
source install.sh deploy


然后在存放up.sh脚本的目录中,右键打开git bash运行以下命令:
source up.sh
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:
Deploy the necessary configuration for the blog
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

deploy:
type: git
repo: Fill in your warehouse address here, it is recommended to use SSH address, which is beginning with git
branch: master
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
cnpm install hexo-deployer-git --save
or you can run :npm install hexo-deployer-git --save
Last updated
Was this helpful?