Code Monkey home page Code Monkey logo

Comments (15)

neoesque avatar neoesque commented on May 18, 2024

試著在 _config.yml 填入
deploy:
type: github
repository: [email protected]:trai25/furtee.github.com.git
branch: master

看看

from hexo.

trai25 avatar trai25 commented on May 18, 2024

还是不行,_config.yml 好像不接受这样的设置呢,报错如下:

You should configure deployment settings in _config.yml first!

Type:
  github, heroku, rsync

More info: http://zespia.tw/hexo/docs/deploy.html

from hexo.

tommy351 avatar tommy351 commented on May 18, 2024
deploy:
  type: github
  repository: [email protected]:trai25/furtee.github.com.git
  branch: master

deploy設定要加縮排,否則無法辨認

from hexo.

trai25 avatar trai25 commented on May 18, 2024

@tommy351 还是不行,缩排以后 hexo generatehexo deploy 的结果如下:

hexo generate:

Loading.
Generating.
Site generated in 0.343s.

hexo deploy:

Clearing.
Copying files.
# On branch master
nothing to commit, working directory clean

from hexo.

tommy351 avatar tommy351 commented on May 18, 2024

因為本地端已經沒有東西能夠commit了,刪除.deploy資料夾後,在重新執行一次

rm -rf .deploy
hexo setup_deploy
hexo deploy

from hexo.

trai25 avatar trai25 commented on May 18, 2024

hexo deploy 结果如下:

Clearing.
Copying files.
[master a19020d] Site updated: Fri Jan 04 2013 00:56:20 GMT+0800 (CST)
 20 files changed, 2045 insertions(+), 1 deletion(-)
 create mode 100644 2013/01/03/hello-world/index.html
 create mode 100644 archives/2013/01/index.html
 create mode 100644 archives/2013/index.html
 create mode 100644 archives/index.html
 create mode 100644 css/font/fontawesome-webfont.eot
 create mode 100644 css/font/fontawesome-webfont.svg
 create mode 100644 css/font/fontawesome-webfont.ttf
 create mode 100644 css/font/fontawesome-webfont.woff
 create mode 100644 css/style.css
 create mode 100644 fancybox/blank.gif
 create mode 100644 fancybox/fancybox_loading.gif
 create mode 100644 fancybox/fancybox_overlay.png
 create mode 100644 fancybox/fancybox_sprite.png
 create mode 100644 fancybox/jquery.fancybox.css
 create mode 100644 fancybox/jquery.fancybox.pack.js
 rewrite index.html (100%)
 create mode 100644 js/gallery.js
 create mode 100644 js/jquery.imagesloaded.min.js
 create mode 100644 js/moment.min.js
 create mode 100644 js/twitter.js

To [email protected]:trai25/furtee.github.com.git

 + 8aff73e...a19020d master -> master (forced update)

Deploy complete.

master 分支的内容有所变化 https://github.com/trai25/furtee.github.com
但 GitHub Page http://furtee.github.com 依然是404……求解

有没有可能是我在此之前漏掉了某个环节的操作?

from hexo.

tommy351 avatar tommy351 commented on May 18, 2024

username.github.com的username必須與使用者名稱相同,也就是說只有在repository為trai25.github.com時才有效,其他repository皆為username.github.com/repository

from hexo.

trai25 avatar trai25 commented on May 18, 2024

哦,原来如此,果然是低级错误……外行真麻烦,要认真学习了。
最后一个问题:

我用户名的 trai25.github.com 现在是一个 Octopress.
如果我把 hexo 的 repository 设置为 trai25.github.com/hexo 是否两个blog都能保留下来呢?

万分感谢!

from hexo.

tommy351 avatar tommy351 commented on May 18, 2024

只要把repository的名稱設為hexo,訪問trai25.github.com/hexo應該就可以了

from hexo.

trai25 avatar trai25 commented on May 18, 2024

弄了半天还是不行,应该是我有一些基础概念不清楚造成的,看来我得再学习学习先。

感谢 @tommy351 不厌其烦~!:-)

from hexo.

ForestCho avatar ForestCho commented on May 18, 2024

因為本地端已經沒有東西能夠commit了,刪除.deploy資料夾後,在重新執行一次
rm -rf .deploy
hexo deploy
@tommy351 提出的这个方法是可以解决的,刚试过

from hexo.

ghostcode avatar ghostcode commented on May 18, 2024

@tommy351 删除 .deploy文件可以实现提交

from hexo.

wulala avatar wulala commented on May 18, 2024

@tommy351 删除 .deploy文件可以实现提交.thx.

from hexo.

steptobe avatar steptobe commented on May 18, 2024

qq 20141125180828
按照你说的删除了.deploy.可是还是不行。怎么回事?

from hexo.

steptobe avatar steptobe commented on May 18, 2024

额,发完就看到问题了,弄好了,谢谢

from hexo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.