前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Issues About Installing Octopress

Issues About Installing Octopress

作者头像
技术小黑屋
发布2018-09-03 17:09:52
3820
发布2018-09-03 17:09:52
举报
文章被收录于专栏:技术小黑屋技术小黑屋

Actually I am fresh to Write Blog with Octopress in Github Pages.According to the Introduction .And now I have make it avaible and the website is present. However I have suffered some problems when I did the setup.Here is a summary of what I have sufferd and how I resolved.

Could not find rdiscount-2.0.7.3 in any of the sources Run bundle install to install missing gems.
代码语言:javascript
复制
source ~/.rvm/scripts/rvm
rvm use 1.9.3 --default 
I have used rake preview ,But I got 404 when I open the http://127.0.0.1:4000
代码语言:javascript
复制
[androidyue@androidyue octopress]$ rake preview
Starting to watch source with Jekyll and Compass. Starting Rack on port 4000
[2013-09-07 15:46:20] INFO  WEBrick 1.3.1
[2013-09-07 15:46:20] INFO  ruby 1.9.3 (2013-06-27) [i686-linux]
[2013-09-07 15:46:20] INFO  WEBrick::HTTPServer#start: pid=10490 port=4000
Configuration from /home/androidyue/github/octopress/_config.yml
Auto-regenerating enabled: source -> public/
[2013-09-07 15:46:21] regeneration: 95 files changed
>>> Change detected at 15:46:21 to: screen.scss
   create public/github/stylesheets/screen.css 
   Errno::ENOENT on line ["56"] of /home/androidyue/.rvm/gems/ruby-1.9.3-p448/gems/compass-0.12.2/lib/compass/actions.rb: No such file or directory - /home/androidyue/github/octopress/public/github/stylesheets/screen.css
   Run with --trace to see the full backtrace]

As the above information and all the sources are outputed in public/ folder And the following are a part of my _config.yml file

代码语言:javascript
复制
# If publishing to a subdirectory as in http://site.com/project set 'root: /project'
root: /
permalink: /blog/:year/:month/:day/:title/
source: source
destination: public/
plugins: plugins
code_dir: downloads/code
category_dir: blog/categories

So compare the two piece information and check the output dir and is public or a subdirectory in public folder.If your outputdir is a subdirectory you should use this link http://127.0.0.1:4000/yourSubDirName P.S.This is the help from StackOverflow http://stackoverflow.com/questions/17465404/rake-preview-not-working-in-octopress

I will keep record about this topic becuase I am making friends with Octopress in Github Pages

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Could not find rdiscount-2.0.7.3 in any of the sources Run bundle install to install missing gems.
  • I have used rake preview ,But I got 404 when I open the http://127.0.0.1:4000
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档