繁体   English   中英

耙设置github页面

[英]rake setup github pages

使用octopress设置github页面时遇到麻烦。 谢谢你的帮助!

例外

$ rake setup_github_pages

rake aborted!
NoMethodError: undefined method `[]' for nil:NilClass
D:/octopress/Rakefile:322:in `block in <top (required)>'
Tasks: TOP => setup_github_pages
(See full trace by running task with --trace)
## Set the codepage to 65001 for Windows machines
Enter the read/write url for your repository
(For example, 'git@github.com:your_username/your_username.github.io.git)
       or 'https://github.com/your_username/your_username.github.io')
Repository url:

您只需要在最后一行添加您的仓库,忽略上面的错误。

设置好之后,请使用rake deploy其上传到您的github帐户。
您在Windows上遇到问题,这就是为什么会出现错误。

这是在Windows上修复它的方法:

https://github.com/jekyll/jekyll/issues/1835

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM