Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy responds but cannot deploy #4634

Closed
5 tasks done
luosiwei-cmd opened this issue Feb 6, 2021 · 34 comments
Closed
5 tasks done

deploy responds but cannot deploy #4634

luosiwei-cmd opened this issue Feb 6, 2021 · 34 comments

Comments

@luosiwei-cmd
Copy link

luosiwei-cmd commented Feb 6, 2021

Check List

Please check followings before submitting a new issue.

Question

After I executing the command hexo d, the command box only has the following 4 lines corresponding:

luosw@DESKTOP-6ROD0CG MINGW64 ~/hexo (master)
$ hexo d
INFO  Validating config
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...

Then the process terminates directly without any prompt, and the deploy is not successful.

Environment & Settings

Your site _config.yml (Optional)

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

# Site
title: luosw的小窝
subtitle: '我的小窝,我的自由……'
description: '一位 Moer 的学习记录'
keywords: hexo博客,个人博客,数学竞赛,MO,高联,IMO,CMO
author: luosw
language:
  - zh-CN
  - en
  - zh-HK
  - zh-TW
timezone: ''

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: https://luosw.fun
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
  trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
  trailing_html: true # Set to false to remove trailing '.html' from permalinks

# 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:

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
  enable: true # Open external links in new tab
  field: site # Apply to the whole site
  exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
  enable: false
  line_number: true
  auto_detect: false
  tab_replace: ''
  wrap: true
  hljs: false
prismjs:
  enable: false
  preprocess: true
  line_number: true
  tab_replace: ''

# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
  path: ''
  per_page: 10
  order_by: -date

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true

# 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
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'

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

# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: volantis

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
  type: git
  repo:
    github: [email protected]:luosiwei-cmd/luosiwei-cmd.github.io.git
    coding: https://e.coding.net/luosw-blog/luosw-blog.git
  branch: master

Others

@luosiwei-cmd
Copy link
Author

中文就是说在执行 hexo d 之后没有完成,就输出上面的4行直接结束进程了

@twilightion
Copy link

the same problem and found no solution

@zhongls1979
Copy link

The same problem has not been solved.

@miccferr
Copy link

miccferr commented Feb 6, 2021

+1

@Minghezhao
Copy link

到底是因为什么,本来之前还可以,重新装一个主题之后就变成跟你一样了。搞一天了,tmd烦死了!

@ghost
Copy link

ghost commented Feb 7, 2021

+1 这是bug吗?

@luosiwei-cmd
Copy link
Author

Now I have a temporary way to solve this problem:

  1. Manually clone the repository
  2. Change locally
  3. Use git push -f to force push

@Minghezhao
Copy link

解决了吗?

@xiao-mu-shen
Copy link

has solved?

@wtnyzhsq
Copy link

wtnyzhsq commented Feb 7, 2021

+1,the same problem and found no solution

@xiao-mu-shen
Copy link

+1,the same problem and found no solution

i don't know how to solve,and I have been tortured for three days. = . =

@fristalpha
Copy link

我也是这个问题

@ghost
Copy link

ghost commented Feb 7, 2021

the same problem and found no solution

@NatsumiXD
Copy link

NatsumiXD commented Feb 7, 2021

你们好,目前我也遇到了这个bug,我已经找到非官方解决方案,就是自己编写一个push到GitHub仓库的脚本。目前,我正在使用脚本来上传我的博客内容。由于我使用的是Windows系统,所以我只能分享Windows的脚本,脚本内容将会放在帖子后。
对了!有一个注意事项!就是使用脚本push到GitHub上默认的分支是"master"。您可以通过更改GitHub pages目录来解决,当然你也可以通过篡改倒数第二行的"git push"改为"git push origin ”branchname“ "。最后,您只需要等待60s,便可把您的博客内容自动push到您的仓库中。哦,对了,因为"hexo clean,hexo g,hexo d"的执行问题,所以我只能使用"start+ping"(ping是用来延时的)的方式来执行以上的三条命令。
Q1:需要预先安装什么?
A1:您需要预先安装: git,hexo,nodejs
Q2:如何配置脚本?
Q2:配置脚本仅需把 ”repositoryurl“改为您仓库的url(需要加上https:// 和 .get,例子:https://github.com/“username”“repositoryurl”.get)即可。

Hello, I have also encountered this bug. I have found an unofficial solution, which is to write a script to push to GitHub warehouse. Currently, I'm using scripts to upload my blog content. Because I use Windows system, I can only share the script of windows, and the script content will be put after the post.
by the way! There is a note! That is to use script to push to GitHub. The default branch is "master". You can solve this problem by changing the GitHub pages directory. Of course, you can also change "git push" in the penultimate line to "git push origin “branchname” ". Finally, you only need to wait 60 seconds to automatically push your blog content into your warehouse. Oh, by the way, because of the execution problem of "hexo clean, hexo g, hexo d", I can only use "start + ping" (ping is used to delay) to execute the above three commands.
Q1: what needs to be pre installed?
A1: you need to install git, hexo, nodejs in advance
Q2: how to configure scripts?
Q2: the configuration script only needs to change ”repositoryurl“ to the URL of your warehouse (need to add https:// and.get,example:https://github.com/“username”/”repositoryurl“.get ).

bat文件代码/Batchfile code:

start /min hexo clean
ping -n 20 127.0.0.1
start /min hexo g
ping -n 20 127.0.0.1
start /min hexo d
ping -n 20 127.0.0.1
cd .deploy_git
git add .
git commit -m "describe"
git remote add origin
git push
start taskkill /f /im cmd.exe

@ghost
Copy link

ghost commented Feb 7, 2021

到底是因为什么,本来之前还可以,重新装一个主题之后就变成跟你一样了。搞一天了,tmd烦死了!

我新建了一个全新的hexo站点仍然出现这个问题

@Minghezhao
Copy link

我实在找不出来这样是因为什么了,只能自己手动把public文件夹推到github仓库内,当然写个脚本操作起来更容易一些。

@tszhong0411
Copy link

tszhong0411 commented Feb 7, 2021

+1 換了主題就這樣,還重裝了git , node js , hexo,重建repo只好先把public先推上去,雖然不方便

@xiao-mu-shen
Copy link

你们好,目前我也遇到了这个bug,我已经找到非官方解决方案,就是自己编写一个push到GitHub仓库的脚本。目前,我正在使用脚本来上传我的博客内容。由于我使用的是Windows系统,所以我只能分享Windows的脚本,脚本内容将会放在帖子后。

对了!有一个注意事项!就是使用脚本push到GitHub上默认的分支是"master"。您可以通过更改GitHub pages目录来解决,当然你也可以通过篡改倒数第二行的"git push"改为"git push origin ”branchname“ "。最后,您只需要等待60s,便可把您的博客内容自动push到您的仓库中。哦,对了,因为"hexo clean,hexo g,hexo d"的执行问题,所以我只能使用"start+ping"(ping是用来延时的)的方式来执行以上的三条命令。
Q1:需要预先安装什么?
A1:您需要预先安装: git,hexo,nodejs
Q2:如何配置脚本?
Q2:配置脚本仅需把 ”repositoryurl“改为您仓库的url(需要加上https:// 和 .get,例子:https://github.com/“username”“repositoryurl”.get)即可。%E5%8D%B3%E5%8F%AF%E3%80%82)

Hello, I have also encountered this bug. I have found an unofficial solution, which is to write a script to push to GitHub warehouse. Currently, I'm using scripts to upload my blog content. Because I use Windows system, I can only share the script of windows, and the script content will be put after the post.

by the way! There is a note! That is to use script to push to GitHub. The default branch is "master". You can solve this problem by changing the GitHub pages directory. Of course, you can also change "git push" in the penultimate line to "git push origin “branchname” ". Finally, you only need to wait 60 seconds to automatically push your blog content into your warehouse. Oh, by the way, because of the execution problem of "hexo clean, hexo g, hexo d", I can only use "start + ping" (ping is used to delay) to execute the above three commands.
Q1: what needs to be pre installed?
A1: you need to install git, hexo, nodejs in advance
Q2: how to configure scripts?
Q2: the configuration script only needs to change ”repositoryurl“ to the URL of your warehouse (need to add https:// and.get,example:https://github.com/“username”/”repositoryurl“.get ).
bat文件代码/Batchfile code:

start /min hexo clean
ping -n 20 127.0.0.1
start /min hexo g
ping -n 20 127.0.0.1
start /min hexo d
ping -n 20 127.0.0.1
cd .deploy_git
git add .
git commit -m "describe"
git remote add origin
git push
start taskkill /f /im cmd.exe

What if I want to deploy to my own server

@ncepuee
Copy link

ncepuee commented Feb 8, 2021

the same problem +1 who can help!,所以是用不了hexo d部署了是吗?快哭了…

@ncepuee
Copy link

ncepuee commented Feb 8, 2021

到底是因为什么,本来之前还可以,重新装一个主题之后就变成跟你一样了。搞一天了,tmd烦死了!

我新建了一个全新的hexo站点仍然出现这个问题

-----中文-----
我也是新建了一个站点,然后SSH连接成功了,但是部署不了新的GitHub账号,但是原来的账号可以部署,我不知道是什么原因,hexo s,localhost:4000可以预览,就是部署不了!!!烦死了
-----English-----
I also created a new site, and SSH connected successfully, but I could not deploy the new GitHub account, but the old account could be deployed, I do not know why, hexo s, localhost:4000 can be previewed, but I just could not deploy!! tired
-----中文-----
我在stackoverflow也问了这个问题:https://stackoverflow.com/questions/66095027/after-hexo-d-when-diaplay-copying-files-from-public-folder-git-stopped-i-do
截至2021/2/8,还没有人提出除了Git push解决方法
-----English-----
I also asked this question in stackoverflow: https://stackoverflow.com/questions/66095027/after-hexo-d-when-diaplay-copying-files-from-public-folder-git-stopped-i-do
2021/2/8, no one has come up with a solution yet

@xiao-mu-shen
Copy link

大家可以进群交流一下
857473043

@stevenjoezhang
Copy link
Member

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

@luosiwei-cmd
Copy link
Author

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

亲测有效,谢谢!

@wtnyzhsq
Copy link

wtnyzhsq commented Feb 8, 2021

npm上面更新了吗?

@stevenjoezhang
Copy link
Member

npm 暂未更新(因时差问题,管理员不在线)。更新后安装 hexo-deployer-git 3.0.0 版本即可。

@shxian
Copy link

shxian commented Feb 8, 2021

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

亲测有效,感谢

@strsun
Copy link

strsun commented Feb 8, 2021

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

It works. Thanks a lot.

@KnightDevelop
Copy link

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

亲测有效

@DejavuMoe
Copy link

到底是因为什么,本来之前还可以,重新装一个主题之后就变成跟你一样了。搞一天了,tmd烦死了!

我新建了一个全新的hexo站点仍然出现这个问题

我也是,为了复现这个问题:我目前博客的本地博客源文件夹是可以推送的,但是重新init一个博客目录跟此Issues描述的情况一样

xunscript added a commit to xunscript/xunscript.github.io that referenced this issue Feb 9, 2021
@simeixue
Copy link

simeixue commented Feb 9, 2021

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

可以了!!

@stevenjoezhang
Copy link
Member

hexo-deployer-git version 3.0.0 has been released, please update the plugin to resolve this issue.

hexo-deployer-git 3.0.0 版本已发布,请更新插件来修复此问题。

@Schwertlilien
Copy link

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

我的不行哇,试了很多遍,还新建了站点,都不行

@DejavuMoe
Copy link

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

我的不行哇,试了很多遍,还新建了站点,都不行

hexo-deployer-git 插件已经更新 3.0.0版本,更新即可 #3.0.0 版本已发布,请更新插件来修复此问题

@stevenjoezhang stevenjoezhang unpinned this issue Mar 25, 2021
@Melifen
Copy link

Melifen commented Jan 31, 2022

大家能否帮忙测试一下,直接从 master 分支安装 hexo-deployer-git 是否可以解决问题?谢谢反馈

npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git

亲测有效,谢谢!
什么叫从master分支安装hexo-deployer-git啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests