zoukankan      html  css  js  c++  java
  • Hexo笔记 #02# 手动部署到GitHubPages&Unknown SSL protocol error

    通过工具(hexo-deployer-git)自动部署博客到github时遇到

    fatal: unable to access 'https://github.com/xkfx/xkfx.github.io/': Unknown SSL protocol error in connection to github.com:443
    FATAL {
      err: Error: Spawn failed
          at ChildProcess.<anonymous> (D:\github\my_blog_src\node_modules\_hexo-util@2.5.0@hexo-util\lib\spawn.js:51:21)
          at ChildProcess.emit (node:events:390:28)
          at ChildProcess.cp.emit (D:\github\my_blog_src\node_modules\_cross-spawn@7.0.3@cross-spawn\lib\enoent.js:34:29)
          at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
        code: 128
      }
    } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html

    经测试,github网站访问正常,其它项目正常push,考虑手动部署。

    通过git clone下载xxxx.github.io到本地,测试push正常

    一,通过hexo clean & hexo g更新静态文件;

    二,将xxxx.github.io中除.git文件夹外的文件删除;

    三,把"hexo项目根目录"\public文件夹下的内容复制粘贴到xxxx.github.io中

    通过git add --all & git commit -m "xxx" & git push origin xxx完成部署。

  • 相关阅读:
    操作系统
    Typora
    C++
    linux sftp 和scp 运用
    python GIL锁与多cpu
    django model 高级进阶
    django template 模板
    django view 视图控制之数据返回的视图函数
    django 创建管理员用户
    jango 模型管理数据model入门
  • 原文地址:https://www.cnblogs.com/xkxf/p/15780650.html
Copyright © 2011-2022 走看看