$ git clone git://github.com/mizzy/nebel-site.git
$ cd nebel-site
$ bundle install
as3:~/nebel-site# ls
Gemfile Guardfile plugins post.thor README.md static
Gemfile.lock layouts posts public server.thor
as3:~/nebel-site# ls public
as3:~/nebel-site# (说明此时的public目录是空目录)
as3:~/nebel-site# cd posts
as3:~/nebel-site/posts# nano test1.md
格式为:
---
title: test1
date: 2014-06-03 17:16:59 +0900
---
这是测试1.
然后,
as3:~/nebel-site/posts# cd ..
as3:~/nebel-site# bundle exec nebel (这个就是生成/更新静态网站的命令)
as3:~/nebel-site# ls
Gemfile Guardfile plugins post.thor README.md static
Gemfile.lock layouts posts public server.thor
as3:~/nebel-site# ls public
atom.xml blog index.html
as3:~/nebel-site# cd public
as3:~/nebel-site/public#
as3:~/nebel-site/public# ls
atom.xml blog index.html
(可见~/nebel-site/public/就是静态网站的根目录)
as3:~/nebel-site/public# nohup Rwebserver 34517 > /dev/null &
访问http://as3.brite.biz:34517/即可看到网站效果。
演示站点:http://as3.brite.biz:34517/,http://nebel.brite.biz.st
项目地址:https://github.com/mizzy/nebel-site/,
https://github.com/mizzy/nebel-site/blob/master/README.md
$ cd nebel-site
$ bundle install
as3:~/nebel-site# ls
Gemfile Guardfile plugins post.thor README.md static
Gemfile.lock layouts posts public server.thor
as3:~/nebel-site# ls public
as3:~/nebel-site# (说明此时的public目录是空目录)
as3:~/nebel-site# cd posts
as3:~/nebel-site/posts# nano test1.md
格式为:
---
title: test1
date: 2014-06-03 17:16:59 +0900
---
这是测试1.
然后,
as3:~/nebel-site/posts# cd ..
as3:~/nebel-site# bundle exec nebel (这个就是生成/更新静态网站的命令)
as3:~/nebel-site# ls
Gemfile Guardfile plugins post.thor README.md static
Gemfile.lock layouts posts public server.thor
as3:~/nebel-site# ls public
atom.xml blog index.html
as3:~/nebel-site# cd public
as3:~/nebel-site/public#
as3:~/nebel-site/public# ls
atom.xml blog index.html
(可见~/nebel-site/public/就是静态网站的根目录)
as3:~/nebel-site/public# nohup Rwebserver 34517 > /dev/null &
访问http://as3.brite.biz:34517/即可看到网站效果。
演示站点:http://as3.brite.biz:34517/,http://nebel.brite.biz.st
项目地址:https://github.com/mizzy/nebel-site/,
https://github.com/mizzy/nebel-site/blob/master/README.md