Comments (15)
試著在 _config.yml 填入
deploy:
type: github
repository: [email protected]:trai25/furtee.github.com.git
branch: master
看看
from hexo.
还是不行,_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.
deploy:
type: github
repository: [email protected]:trai25/furtee.github.com.git
branch: master
deploy設定要加縮排,否則無法辨認
from hexo.
@tommy351 还是不行,缩排以后 hexo generate
和 hexo 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.
因為本地端已經沒有東西能夠commit了,刪除.deploy資料夾後,在重新執行一次
rm -rf .deploy
hexo setup_deploy
hexo deploy
from hexo.
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.
username.github.com的username必須與使用者名稱相同,也就是說只有在repository為trai25.github.com時才有效,其他repository皆為username.github.com/repository
from hexo.
哦,原来如此,果然是低级错误……外行真麻烦,要认真学习了。
最后一个问题:
我用户名的 trai25.github.com 现在是一个 Octopress.
如果我把 hexo 的 repository 设置为 trai25.github.com/hexo 是否两个blog都能保留下来呢?
万分感谢!
from hexo.
只要把repository的名稱設為hexo,訪問trai25.github.com/hexo應該就可以了
from hexo.
弄了半天还是不行,应该是我有一些基础概念不清楚造成的,看来我得再学习学习先。
感谢 @tommy351 不厌其烦~!:-)
from hexo.
因為本地端已經沒有東西能夠commit了,刪除.deploy資料夾後,在重新執行一次
rm -rf .deploy
hexo deploy
@tommy351 提出的这个方法是可以解决的,刚试过
from hexo.
@tommy351 删除 .deploy文件可以实现提交
from hexo.
@tommy351 删除 .deploy文件可以实现提交.thx.
from hexo.
from hexo.
额,发完就看到问题了,弄好了,谢谢
from hexo.
Related Issues (20)
- Enhancement, give more helpful error when hexo server
- hexo build failed due to type issue HOT 10
- profiling error generated from the external PR HOT 1
- post_link cannot handle anchors
- conflicts of PRs' comments from ci
- Is there a way to make hexo render articles in a specific order ? HOT 5
- 什么时候提供关于 7.0.0 版本相关的文档信息? HOT 3
- v7.0.0 Can not change highlight to prismjs HOT 3
- Having a path in config.new_post_name breaks tag plugin post_link HOT 4
- site.categories.data is not iterable HOT 8
- 创建自定义页面 HOT 1
- `` `{#}` `` will cause the behind content disappear. HOT 3
- option to use filenames or a title tag in a post as the title for a post. HOT 2
- [hexo generate] files are failing to generate and link together correctly. HOT 1
- hexo.locals.get('posts'),只能获取三篇文章?"hexo.locals.get('posts')" only retrieves three articles? HOT 4
- Module parse failed: Unexpected character '�' (1:0) HOT 1
- plugin issue: Tags removed by `setTags` in before_post_render filter still exists in the tag list but the page is not generated HOT 4
- _config.yml设置了url如https://username.github.io/project', post_link跳转会丢失project,导致404 HOT 1
- 增加LaTeX解析功能 HOT 1
- benchmark project not found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo.