# git clone git://github.com/zealic/blog.git zealic_blog
# cd zealic_blog
#rake generate (他这个源码缺少_config.yml文件,rake generate这步会失败。下面贴出_config.yml文件的内容。在 /root/zealic_blog/里新建_config.yml文件,然后再次运行rake generate,这次就不会失败了)
# mkdir _posts (在~/zealic_blog/里新建_posts目录)
进入_posts目录,新建帖子即md文件,yyyy-mm-dd-somewording.md。帖子的格式为
---
layout: post
title: xxx
categories: yyy
---
此处写正文或代码
# cd ..
# rake generate(这步运行后,将在/root/zealic_blog/里生成"_site"目录,这个"_site"目录就是网站的根目录,你可绑定 一个域名到该目录。)
示例:http://zb2.brite.biz/,http://zb.brite.biz/
( http://as3.brite.biz:1230/,http://as3.brite.biz:1234,这2个访问地址是通过Rwebserver实现的。)
附:_config.yml文件的内容-
# Site custom fields
title: Thinking IN Action
domain: example.com
username: username
email: username@example.com
google_analytics_id: UA-0-0
microlog: {
type: 'YOUR_MICROLOG_TYPE', # Can be "twitter or sina"
uid: 'YOUR_MICROLOG_ID',
token: 'YOUR_MICROLOG_ACCESS_TOKEN'
}
github: {
username: '',
repo_url: ''
}
# Site configuration
permalink: /:year/:month/:day/:title.html
exclude: Gemfile, Gemfile.lock, config.ru
regeneration: true
pygments: true
markdown: rdiscount
paginate: 10
# Plugins configuration
category_dir: categories
tag_dir: tags
tag_title_prefix: 'Tag: '
# cd zealic_blog
#rake generate (他这个源码缺少_config.yml文件,rake generate这步会失败。下面贴出_config.yml文件的内容。在 /root/zealic_blog/里新建_config.yml文件,然后再次运行rake generate,这次就不会失败了)
# mkdir _posts (在~/zealic_blog/里新建_posts目录)
进入_posts目录,新建帖子即md文件,yyyy-mm-dd-somewording.md。帖子的格式为
---
layout: post
title: xxx
categories: yyy
---
此处写正文或代码
# cd ..
# rake generate(这步运行后,将在/root/zealic_blog/里生成"_site"目录,这个"_site"目录就是网站的根目录,你可绑定 一个域名到该目录。)
示例:http://zb2.brite.biz/,http://zb.brite.biz/
( http://as3.brite.biz:1230/,http://as3.brite.biz:1234,这2个访问地址是通过Rwebserver实现的。)
附:_config.yml文件的内容-
# Site custom fields
title: Thinking IN Action
domain: example.com
username: username
email: username@example.com
google_analytics_id: UA-0-0
microlog: {
type: 'YOUR_MICROLOG_TYPE', # Can be "twitter or sina"
uid: 'YOUR_MICROLOG_ID',
token: 'YOUR_MICROLOG_ACCESS_TOKEN'
}
github: {
username: '',
repo_url: ''
}
# Site configuration
permalink: /:year/:month/:day/:title.html
exclude: Gemfile, Gemfile.lock, config.ru
regeneration: true
pygments: true
markdown: rdiscount
paginate: 10
# Plugins configuration
category_dir: categories
tag_dir: tags
tag_title_prefix: 'Tag: '
git clone git://github.com/zealic/blog.git zealic_blog
cd zealic_blog
在~/zealic_blog里修改_config.yml,然后
rake generate
rake deploy
# ~/zealic_blog/ mkdir _posts (在~/zealic_blog/里新建_posts目录)
进入_posts目录,新建帖子。然后
rake generate - See more at: http://as3.brite.biz:1234/2012/05/23/how-to-install-zealic-blog.html#sthash.b6kZxdTl.dpuf
cd zealic_blog
在~/zealic_blog里修改_config.yml,然后
rake generate
rake deploy
# ~/zealic_blog/ mkdir _posts (在~/zealic_blog/里新建_posts目录)
进入_posts目录,新建帖子。然后
rake generate - See more at: http://as3.brite.biz:1234/2012/05/23/how-to-install-zealic-blog.html#sthash.b6kZxdTl.dpuf
git clone git://github.com/zealic/blog.git zealic_blog
cd zealic_blog
在~/zealic_blog里修改_config.yml,然后
rake generate
rake deploy
# ~/zealic_blog/ mkdir _posts (在~/zealic_blog/里新建_posts目录)
进入_posts目录,新建帖子。然后
rake generate - See more at: http://as3.brite.biz:1234/2012/05/23/how-to-install-zealic-blog.html#sthash.b6kZxdTl.dpuf
cd zealic_blog
在~/zealic_blog里修改_config.yml,然后
rake generate
rake deploy
# ~/zealic_blog/ mkdir _posts (在~/zealic_blog/里新建_posts目录)
进入_posts目录,新建帖子。然后
rake generate - See more at: http://as3.brite.biz:1234/2012/05/23/how-to-install-zealic-blog.html#sthash.b6kZxdTl.dpuf