hexojs / hexo

A fast, simple & powerful blog framework, powered by Node.js.
https://hexo.io
MIT License
39.18k stars 4.82k forks source link

hexo deploy Failed #2102

Closed renld closed 7 years ago

renld commented 8 years ago

before you submit your issue, please delete all the example code in template

Environment Info : OSX10.11.5

Node version(node -v)

v4.4.5

Your site _config.yml

# Hexo Configuration
## Docs : https://hexo.io/docs/configuration.html
## Source : https://github.com/hexojs/hexo/

# Site
title : Leidar's Home
subtitle:
description : 少年在等你
author : Renld
language : zh-Hans
timezone:

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url : http://renld.github.io/
root : /
permalink : :year/:month/:day/:title/
permalink_defaults:

# Directory
source_dir : source
public_dir : public
tag_dir : tags
archive_dir : archives
category_dir : categories
code_dir : downloads/code
i18n_dir : :lang
skip_render:

#duoshuo_shortname : renld

disqus_shortname : renld
# Writing
new_post_name : :title.md # File name of new posts
default_layout : post
titlecase : false # Transform title into titlecase
external_link : true # Open external links in new tab
filename_case : 0
render_drafts : false
post_asset_folder : false
relative_link : false
future : true
highlight:
  enable : true
  line_number : true
  auto_detect : false
  tab_replace:

# Category & Tag
default_category : uncategorized
category_map:
tag_map:

# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format : YYYY-MM-DD
time_format : HH:mm:ss

# Pagination
## Set per_page to 0 to disable pagination
per_page : 10
pagination_dir : page

# Extensions
## Plugins : http://hexo.io/plugins/
#RSS订阅
plugin:
- hexo-generator-feed
- hexo-tag-video
#Feed Atom
feed:
type : atom
path : atom.xml
limit : 20
## Themes : https://hexo.io/themes/
theme : spfk

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

search:
  path : search.xml
  field : post

...

Your theme _config.yml

# >>> Basic Setup | 基础设置 <<<

# Header | 主菜单
## About Page : `hexo new page about`
## Tags Cloud Page : `hexo new page tags`
menu:
  戳回老本营 : /
  中珠碰碰碰 : /ZZPPP/index.html
  这里有个球 : /tagcloud.swf
  曾经的回忆 : "http://blog.csdn.net/qq_32209643"
  自述与留言 : /about

# 博客首页 : /Home
# 作品展示 : /works
# 前端导航 : /FrontEndGuide
# 静心阅读 : /tags
# 光影之路 : /instagram
# 随笔 : /tags/随笔

# Link to your avatar | 填写头像地址
avatar : /img/fan.jpg

# Small icon of Your site | 站点小图标地址
favicon : /img/images.jpg

# Social info. Bar | 社交信息展示
## Keep "mailto:" in Email | 设置 Email 时保留 "mailto:"
## Encrypt email 加密邮件地址 http://ctrlq.org/encode/
## RSS requires a plugin to take effect | 使用 RSS 需先安装对应插件
## https://github.com/hexojs/hexo-generator-feed
subnav:
  github : "https://github.com/renld"
  #weibo : "http://weibo.com/leidasir"
  zhihu : "https://www.zhihu.com/people/renld"
  #douban : "#"
  mail : "mailto:leidar100@gmail?subject=GithubBlog"
  #CSDN : "http://blog.csdn.net/qq_32209643"
  # linkedin : "https://www.linkedin.com/in/%E5%BF%A0%E6%88%90-%E6%9D%8E-a48562b1"
  # douban : "#"
  # google : "#"
  # zhihu : "zhihu"
  # douban : "douban"
  # Facebook : "#"
  # Google : "#"
  # Twitter : "#"
  # LinkedIn : "#"
  # QQ : "505636638"
  wechat : "renld.github.io/wechat"
  rss : /atom.xml
  # PayPal : "#"
  # StackOverflow : "#"
  # Instagram : "#"
  # Flickr : "#"

# >>> Conments 评论系统 <<<
# Chose ONE as your comment system and keep others disable.
# 选一个作为网站评论系统,其他保持禁用。

disqus : 
  on : true
  shortname : renld
  # https://help.disqus.com/customer/en/portal/articles/466208-what-s-a-shortname-
  # It is unnecessary to enable disqus here if 
  # you have set "disqus_shortname" in your site's "_config.yml" 

duoshuo : 
  #on : true
  domain : 
  # 是否开启多说评论,http://duoshuo.com/create-site/
  # 使用上面网址登陆你的多说,然后创建站点,在 domain 中填入你设定的域名前半部分
  # http://<要填的部分>.duoshuo.com (domain只填上<>里的内容,不要填整个网址)

youyan:
  #on : true
  id : 
  # 是否开启友言评论,http://www.uyan.cc/index.php
  # id 中填写你的友言用户数字ID,注册后进入后台管理即可查看
  # 友言服务在 Web 环境下运行,普通本地环境无法查看,请部署后在线上测试。

# >>> Style Customisation 样式自定义 <<<

# Background | 背景
## "background_sum" : show images form /source/background/的图片数目
## "on : true" : 自动随机显示这5张图片
## "on : false" : 自定义显示图片设置background_image : 5
background:
  on : true
  #on : false
  background_sum : 8
  background_image : 5

highlight_style:
  #on : true
  inline_code : 1  # Value : 0 - 9 可选
  code_block : 2  # Value : 0 - 4 
  # Set inline_code to style highlight text
  # Chose a highlight theme for code block
  # 通过 inline_code 切换内置文本高亮样式
  # 通过 code_block 切换内置代码高亮配色主题

blockquote_style:
  #on : true
  blockquote : 1  # Value : 0 - 7 可选
  # 自定义文章「引用部分」的样式

# 左边栏宽度 px
left_col_width : 300

# 目录中标题不换行
# Keep TOC title on the same line | 
toc_nowrap : false

# 自定义"阅读全文"链接按钮的显示文字
# Customize the text on excerpt link
excerpt_link : Greater World #修改more>>的文字

# 是否显示边栏中的搜索框(仅样式,未添加搜索功能)
# Search Box in left column
# search_box : true

# 是否开启主页及加载头像时的动画效果
# Animation in Homepage and Loading avatar
animate : true

# >>> Small features | 小功能设置 <<<

# 是否开启边栏多标签切换
# Birdhouse button in left column
tagcloud : true

# Blogroll, Link exchange | 友情链接
# friends : false
friends:
  三金 : http://alau.top
  terry : https://terry.pub/
  sxkdz : http://sxkdz.org

#是否开启“关于我”。
#aboutme : 纯海迷、爱运动、爱交友、爱旅行、喜欢接触新鲜事物、迎接新的挑战,更爱游离于错综复杂的编码与逻辑中
aboutme : false

# 是否在新窗口打开链接
# Open ALL link in a new tab
open_in_new : false

# Customize feed link 自定义订阅地址
rss : /atom.xml

# >>> Vendors | 第三方工具 & 服务 <<<

# images viewer | 图片浏览器
## http://www.fancyapps.com/fancybox/
fancybox : true

# Display Math(LaTeX, MathML...) | 数学公式支持
## https://www.mathjax.org/
mathjax : true

# Socail Share | 是否开启分享
# share : true
#baidushare : true
#showshare : true

# 百度、谷歌站长验证。填写 HTML 标签 content
# Site Verification for Google and Baidu. HTML label content.
#google_site : # pFW527fHrjfI0si2w4NQ0w3cTw12AvvuohAu1PUfqKA
#baidu_site : #c167b9feb4f0b208b712c79629c188e4

# Fill in Google Analytics tracking ID, #e.g. UA-XXXXX-X, or Baidu Analytics hash key
google_analytics:
baidu_analytics:

# 不蒜子网站计数设置
# http://ibruce.info/2015/04/04/busuanzi/
visit_counter:
  on : 
  site_visit : Site visited by
  page_visit : Page visited by

# A标签提示
TipTitle : true

# Loading
# Loading : true

Plugin version(npm ls --depth 0)

hexo-site@0.0.0 /Users/macbook/blog
├── git@0.1.5 extraneous
├── graceful@1.0.0 extraneous
├── graceful-fs-extra@1.1.0 extraneous
├── hexo@3.2.0
├── hexo-deployer-git@0.2.0
├── hexo-generator-archive@0.1.4
├── hexo-generator-category@0.1.3
├── hexo-generator-feed@1.1.0
├── hexo-generator-index@0.2.0
├── hexo-generator-search@1.0.2
├── hexo-generator-sitemap@1.1.2
├── hexo-generator-tag@0.2.0
├── hexo-git-backup@0.0.91
├── hexo-pdf@1.1.0
├── hexo-renderer-ejs@0.2.0
├── hexo-renderer-marked@0.2.10
├── hexo-renderer-stylus@0.3.1
├── hexo-server@0.2.0
├── hexo-tag-cloud@2.0.1
├── hexo-tag-owl@1.1.0
├── hexo-tag-video@0.0.2
└── hexo-wordcount@1.2.0

npm ERR! extraneous: git@0.1.5 /Users/macbook/blog/node_modules/git
npm ERR! extraneous: graceful@1.0.0 /Users/macbook/blog/node_modules/graceful
npm ERR! extraneous: graceful-fs-extra@1.1.0 /Users/macbook/blog/node_modules/gr

For BUG

  1. always ERROR Plugin load failed: hexo-git-backup
  2. i can generate and server it but fail when i deploy
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
[master f6d469c] Site updated: 2016-08-18 14:55:21
 77 files changed, 2572 insertions(+), 661 deletions(-)
 create mode 100644 2016/08/17/PL4-3/index.html
 create mode 100644 tags/Semantic/index.html
 create mode 100644 tags/Tools/index.html
 create mode 100644 tags/hexo/index.html
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.

and nothing then.....

question

should i must use 'sudo'?

NoahDragon commented 7 years ago

No, Hexo don't need sudo.

You can run hexo --debug d to see the debug output.