2017-01-17 6 views
0

私はGithubPageにHexoをデプロイしようとしました。Hexoをgithubにデプロイ

生成プロセスは正常ですが、GithubPageに展開するとエラーが発生します。ここで

_config.ymlでの展開の一部です:

# Deployment 
## Docs: https://hexo.io/docs/deployment.html 
deploy: 
type: git 
repo: https://github.com/ZhangYuef/ZhangYuef.github.io.git 
# branch: Hexo 

enter image description here

展開 enter image description here

を生成しますので、何が起こっているの? Thxに助けてください! :)あなたが質問で提供

答えて

0

このような_config.ymlを更新しよう:

deploy: 
    type: git 
    repository: https://github.com/fakeYanss/fakeYanss.github.io.git 
    branch: master 

YAMLは非常に非常に非常に厳格であり、インデントがあります重要!

0

このエラーの原因は不明です。 環境が設定されているかどうかを確認してください。

  • それは多分、時にはあなたがあなたのssh ssh-keygen -t rsa -C "[email protected]" ssh-agent -s chmod id_rsa 600 ssh-add id_rsa (you need to add the id_rsa.pub to the github's deployer key) ssh -T [email protected]

  • を設定 deploy: type: git repo: [email protected]:xxxxx.git branch: master message: update blog

  • のようなhexo-デプロイヤ-gitの --save

  • gitリポジトリの設定をNPMをインストールいくつかのgitsを持って、デプロイヤを混乱させる。 .gitディレクトリを削除し、他のディレクトリにgitがないことを確認してください。

  • エンコード。それは、エンコーディングが異なる可能性があります。私の場合、すべてのファイルはUTF-8に属しています。

  • ところで、あなたのファイルのerror.try npm install hexo-server --savehexo serverがウェブサイトを展開できるかどうかを検出することができます。 (http://localhost:4000/xx

関連する問題