搭建hexo,在执行 hexo deploy 后,出现 error deployer not found:git 的错误,程序员大本营,技术文章内容聚合第一站。
先复制GitHub仓库的SSH链接地址 打开,Blog文件夹下面的站点配置文件,_config.yml 用文本编辑器打开,找到里面的deploy 代码语言:javascript 代码运行次数:0 运行 AI代码解释 deploy:type:gitrepo:github:git@github.com:guixinchn/Blog.git #coding:git@e.coding.net:guixinchn/blog/blog.git #gitee:git@gitee.com:...
https://github.com/hexojs/hexo-deployer-git 修改_config.yml配置,如下: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 url:https://all-smile.github.io/blogroot:/blog/#...deploy:type:'git'repo:git@github.com:all-smile/blog.gitbranch:gh-pages 提交到远程仓库 创建gh-pages分支 hexo结合Git...
repo: git@***.***.***.***:/var/repo/blog.git# IP填写自己服务器的IP即可branch: master 先安装deploy-git ,才能用命令部署到Git。 npm install hexo-deployer-git --save 然后 hexo clean hexo generate hexo deploy hexo clean清除了你之前生成的东西,也可以不加。 hexo generate 生成静态文章,可以...
使用hexo d或hexo deploy命令时报错: ERROR Deployer not found: git 解决 安装hexo-deployer-git: npm install --save hexo-deployer-git 在_config.yml配置中将deploy的type由github改为git: deploytype:gitrepository:git@github.com:YOUR_ID/YOUR_ID.github.io.gitbranch:master ...
在本地运行 hexo deploy 命令,Hexo 会将生成的静态文件(hexo generate)推送到远程的 Git 仓库 在Git 仓库中,配置一个钩子脚本,它会在接收到推送后执行——将最新的静态文件强制覆盖到指定的工作目录 在Nginx 服务器中,配置访问根路径的请求指向该工作目录 ...
Git环境之前我们已经在本地安装过了,现在也可以用SSH连接到服务器上了,那么接下来就是要在服务器上面安装Git,并且建立一个远程仓库来帮助我们完成部署过程。 这篇文章,我会告诉你如何升级Linux系统的Git版本,以及建立远程仓库,用钩子实现分离仓库和文件内容,最后用一条命令行完成部署Hexo博客。
1.3 Git检查 在文件管理任意位置右键(win11-显示更多选项),点击OpenGit Bashhere 输入 git -v 如果出现版本号即配置成功,如果没有,请搜索Git 环境变量 1.4 NodeJS下载 点此处下载NodeJS 注:下载后安装,安装过程除了安装路径外全默认,路径不能有中文
deploy:type:gitrepo:git@your_server_ip:my-blog.gitbranch:master 1. 2. 3. 4. hexo generate 1. hexo deploy 1. mkdirmy-blog.gitcdmy-blog.gitgitinit--bare 1. 2. 3. cat~/.ssh/id_rsa.pub|sshusername@your_server_ip'cat >> ~/.ssh/authorized_keys' ...
使用hexo d或hexo deploy命令时报错: ERROR Deployer not found: git 解决 安装hexo-deployer-git: npm install --save hexo-deployer-git 在_config.yml配置中将deploy的type由github改为git: deploytype:gitrepository:git@github.com:YOUR_ID/YOUR_ID.github.io.gitbranch:master ...