Skip to content

将hexo部署到服务器失败 #23

@Dereck-327

Description

@Dereck-327

我在将hexo 部署到服务器时报错
修改config配置后 部署
hexo clean
hexo d -g
报错
ssh: Could not resolve hostname ***: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
at ChildProcess. (\hexo-jason-blog\node_modules\hexo-deployer-git\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (node:events:519:28)
at cp.emit \hexo-jason-blog\node_modules\cross-spawn\lib\enoent.js:34:29)
at ChildProcess._handle.onexit (node:internal/child_process:294:12)

我的config配置:
deploy: # 项目发布/部署设置
type: git
repo: git@**:/www/repo/hexo.git
branch: master

希望大佬解答 小白一个 感谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions