V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
terrancy
V2EX  ›  问与答

hexo 没法部署到 coding 的仓库,报错信息如下.

  •  
  •   terrancy · 2016-08-17 01:19:08 +08:00 · 2838 次点击
    这是一个创建于 2802 天前的主题,其中的信息可能已经有所发展或是发生改变。

    FATAL ssh: Could not resolve hostname git.coding.net:terrancy: Name or service n ot known fatal: Could not read from remote repository.

    Please make sure you have the correct access rights and the repository exists.

    毫无疑问,应该是 hexo-deployer-git 模块解析的问题吧? 好纠结,怎么解决哈..

    3 条回复    2016-08-17 11:12:35 +08:00
    terrancy
        1
    terrancy  
    OP
       2016-08-17 01:30:21 +08:00
    找到解决方法,将"/"转成":".
    "ssh://[email protected]:{user}/{repository}" 改成 "ssh://[email protected]/{user}/{repository}"
    stiekel
        2
    stiekel  
       2016-08-17 07:08:02 +08:00
    我这里的配置是:

    deploy:
    type: git
    repo:
    coding: [email protected]:Stiekel/blog.git,coding-pages

    正常部署。
    ITOutsider
        3
    ITOutsider  
       2016-08-17 11:12:35 +08:00 via iPhone
    why not gitlab pages ?

    还支持 https
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2845 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 13:37 · PVG 21:37 · LAX 06:37 · JFK 09:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.