terrancy
V2EX  ›  问与答

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

  •  
  •   terrancy · Aug 17, 2016 · 3621 views
    This topic created in 3555 days ago, the information mentioned may be changed or developed.

    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 replies    2016-08-17 11:12:35 +08:00
    terrancy
        1
    terrancy  
    OP
       Aug 17, 2016
    找到解决方法,将"/"转成":".
    "ssh://[email protected]:{user}/{repository}" 改成 "ssh://[email protected]/{user}/{repository}"
    stiekel
        2
    stiekel  
       Aug 17, 2016
    我这里的配置是:

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

    正常部署。
    ITOutsider
        3
    ITOutsider  
       Aug 17, 2016 via iPhone
    why not gitlab pages ?

    还支持 https
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1029 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 59ms · UTC 19:21 · PVG 03:21 · LAX 12:21 · JFK 15:21
    ♥ Do have faith in what you're doing.