npm install flim -g
(生成的可执行文件为/root/npm/bin/flim)
git clone https://github.com/shapeshed/shapeshed.com shapeshed.com-flim-site
cd shapeshed.com-flim-site
as3:~/shapeshed.com-flim-site# ls
Makefile package.json README.md src
as3:~/shapeshed.com-flim-site# /root/npm/bin/flim generate (这个就是生成/更新静态网站的命令)
as3:~/shapeshed.com-flim-site# ls
build Makefile package.json README.md src
(新出现了build目录)
as3:~/shapeshed.com-flim-site# cd build
as3:~/shapeshed.com-flim-site/build# ls
...
inclusive_new_media_design
inclusive_new_media_design_featured_on_channel_4
index.html
installing-passenger-3-with-rvm-and-nginx-on-osx
instant-rails-dev-environments-with-tmuxinator-and-foreman
internet_explorer_7
...
(里面有index.html,可见~/shapeshed.com-flim-site/build/就是静态网站的根目录)
as3:~/shapeshed.com-flim-site/build# nohup Rwebserver 34208 > /dev/null &
访问http://as3.brite.biz:34208/即可看到网站效果。
发贴方法:
as3:~/shapeshed.com-flim-site/build# cd ../src/_posts
as3:~/shapeshed.com-flim-site/src/_posts# nano test1.md
按~/shapeshed.com-flim-site/src/_posts/里面的某个md文件的格式,新建帖子test1.md,
格式为:
{
"layout": "post",
"title": "测试1",
"date": "ed Jun 06 2014 18:30:00 GMT+0000 (GMT)",
"tags": [
"misc1",
"misc2",
"misc3"
]
}
这是测试1.
然后,
as3:~/shapeshed.com-flim-site/src/_posts# cd ~/shapeshed.com-flim-site
as3:~/shapeshed.com-flim-site# /root/npm/bin/flim generate (这个就是生成/更新静态网站的命令)
演示站点:http://as3.brite.biz:34208/,http://flim.brite.biz.st
项目地址:https://github.com/shapeshed/flim
https://github.com/shapeshed/shapeshed.com
(生成的可执行文件为/root/npm/bin/flim)
git clone https://github.com/shapeshed/shapeshed.com shapeshed.com-flim-site
cd shapeshed.com-flim-site
as3:~/shapeshed.com-flim-site# ls
Makefile package.json README.md src
as3:~/shapeshed.com-flim-site# /root/npm/bin/flim generate (这个就是生成/更新静态网站的命令)
as3:~/shapeshed.com-flim-site# ls
build Makefile package.json README.md src
(新出现了build目录)
as3:~/shapeshed.com-flim-site# cd build
as3:~/shapeshed.com-flim-site/build# ls
...
inclusive_new_media_design
inclusive_new_media_design_featured_on_channel_4
index.html
installing-passenger-3-with-rvm-and-nginx-on-osx
instant-rails-dev-environments-with-tmuxinator-and-foreman
internet_explorer_7
...
(里面有index.html,可见~/shapeshed.com-flim-site/build/就是静态网站的根目录)
as3:~/shapeshed.com-flim-site/build# nohup Rwebserver 34208 > /dev/null &
访问http://as3.brite.biz:34208/即可看到网站效果。
发贴方法:
as3:~/shapeshed.com-flim-site/build# cd ../src/_posts
as3:~/shapeshed.com-flim-site/src/_posts# nano test1.md
按~/shapeshed.com-flim-site/src/_posts/里面的某个md文件的格式,新建帖子test1.md,
格式为:
{
"layout": "post",
"title": "测试1",
"date": "ed Jun 06 2014 18:30:00 GMT+0000 (GMT)",
"tags": [
"misc1",
"misc2",
"misc3"
]
}
这是测试1.
然后,
as3:~/shapeshed.com-flim-site/src/_posts# cd ~/shapeshed.com-flim-site
as3:~/shapeshed.com-flim-site# /root/npm/bin/flim generate (这个就是生成/更新静态网站的命令)
演示站点:http://as3.brite.biz:34208/,http://flim.brite.biz.st
项目地址:https://github.com/shapeshed/flim
https://github.com/shapeshed/shapeshed.com