美文网首页
Hexo 双线部署

Hexo 双线部署

作者: 叶寒_Alex | 来源:发表于2019-07-22 18:00 被阅读0次

    一、coding部署

    • Coding注册账号
    • 添加ssh公钥,可参考这篇文章
    • 创建项目、仓库名任意,配置pages服务

    二、github部署

    • 创建仓库,仓库名必须为yourname.github.ioyourname为用户名
      当你的仓库名为:用户名.github.io 之后默认开启Github Pages
    • 添加ssh key

    三、_config.yml修改

    修改站点配置文件deploy信息如下

    # Deployment
    ## Docs: https://hexo.io/docs/deployment.html
    deploy:
      type: git
      repo:
          github: git@github.com:yourname/yourname.github.io.git
          coding: git@git.coding.net:yourname/yourname.git
    

    四、执行部署

    hexo d -g
    

    相关文章

      网友评论

          本文标题:Hexo 双线部署

          本文链接:https://www.haomeiwen.com/subject/drawlctx.html