git clone https://github.com/sandal/korma
cd korma
as3:~/korma# ls
bin korma.gemspec README
as3:~/korma# ln -s ~/korma/bin/korma /usr/local/bin/korma
as3:~/korma# git clone https://github.com/sandal/rbp-blog
as3:~/korma# cd rbp-blog
as3:~/korma/rbp-blog# ls
about ie6.css layout.erb README styles.css views
config.ru korma_config.yml posts scripts SyntaxHighlighter.css
as3:~/korma/rbp-blog# korma (这个就是生成/更新静态网站的命令)
as3:~/korma/rbp-blog# ls
about korma_config.yml public styles.css
config.ru layout.erb README SyntaxHighlighter.css
ie6.css posts scripts views
(新出现了public目录)
as3:~/korma/rbp-blog# ls public
about feed feed.xml index.html posts styles.css
as3:~/korma/rbp-blog# cd public
as3:~/korma/rbp-blog/public#
(可见~/korma/rbp-blog/public/就是静态网站的根目录)
as3:~/korma/rbp-blog/public# nohup Rwebserver 24328 > /dev/null &
访问http://as3.brite.biz:24328/就可看到网站效果。
发贴方法:
as3:~/korma/rbp-blog/public# cd ~/korma/rbp-blog/posts/ewong/
as3:~/korma/rbp-blog/posts/ewong#
按目录里的000-Prerequisite-Knowledge文件的格式,新建帖子test1,格式如下:
=title test1
=timestamp JAN 10, 2014 at 17:40 PM
=description 点击标题看全文
=entry
这是测试1.
然后,
as3:~/korma/rbp-blog/posts/ewong# cd ~/korma/rbp-blog
as3:~/korma/rbp-blog# korma
演示站点:http://as3.brite.biz:24328,http://km.brite.biz
http://blog.rubybestpractices.com/,
项目地址:https://github.com/sandal/korma
https://github.com/sandal/rbp-blog
cd korma
as3:~/korma# ls
bin korma.gemspec README
as3:~/korma# ln -s ~/korma/bin/korma /usr/local/bin/korma
as3:~/korma# git clone https://github.com/sandal/rbp-blog
as3:~/korma# cd rbp-blog
as3:~/korma/rbp-blog# ls
about ie6.css layout.erb README styles.css views
config.ru korma_config.yml posts scripts SyntaxHighlighter.css
as3:~/korma/rbp-blog# korma (这个就是生成/更新静态网站的命令)
as3:~/korma/rbp-blog# ls
about korma_config.yml public styles.css
config.ru layout.erb README SyntaxHighlighter.css
ie6.css posts scripts views
(新出现了public目录)
as3:~/korma/rbp-blog# ls public
about feed feed.xml index.html posts styles.css
as3:~/korma/rbp-blog# cd public
as3:~/korma/rbp-blog/public#
(可见~/korma/rbp-blog/public/就是静态网站的根目录)
as3:~/korma/rbp-blog/public# nohup Rwebserver 24328 > /dev/null &
访问http://as3.brite.biz:24328/就可看到网站效果。
发贴方法:
as3:~/korma/rbp-blog/public# cd ~/korma/rbp-blog/posts/ewong/
as3:~/korma/rbp-blog/posts/ewong#
按目录里的000-Prerequisite-Knowledge文件的格式,新建帖子test1,格式如下:
=title test1
=timestamp JAN 10, 2014 at 17:40 PM
=description 点击标题看全文
=entry
这是测试1.
然后,
as3:~/korma/rbp-blog/posts/ewong# cd ~/korma/rbp-blog
as3:~/korma/rbp-blog# korma
演示站点:http://as3.brite.biz:24328,http://km.brite.biz
http://blog.rubybestpractices.com/,
项目地址:https://github.com/sandal/korma
https://github.com/sandal/rbp-blog