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完成部署。

  • 相关阅读:
    GOF23设计模式之建造者模式
    GOF23设计模式之工厂模式
    GOF23设计模式之单例模式
    服务端字节流输出图片
    小记常见的会话跟踪技术
    Java生成随机数的三种方式
    因为new Date(),我给IE跪了
    ionic初体验
    cordova开发环境搭建
    gradle环境搭建
  • 原文地址:https://www.cnblogs.com/xkxf/p/15780650.html
Copyright © 2011-2022 走看看