git clone https://github.com/wifiextender/blogfy blogfy-site
cd blogfy-site
root@as3:~/blogfy-site# ls
config.ini generated generate.py README.md static text posts
root@as3:~/blogfy-site# cd 'text posts'
root@as3:~/blogfy-site/text posts# ls
couldnot-resolve-host
root@as3:~/blogfy-site/text posts# nano test1
按couldnot-resolve-host文件的格式,新建源贴test1,
格式为:
title: test1
date: 2014-07-23 16:30
<p>这是测试1.</p>
然后,
root@as3:~/blogfy-site/text posts# cd ..
root@as3:~/blogfy-site# ls
config.ini generated generate.py README.md static text posts
root@as3:~/blogfy-site# nano config.ini
(把address的值改为你的域名地址,我的为http://bf.briteming.yi.org/,不要忘了最后的斜杠。还可把number of posts on front page的值改为你想要的值,我改为了3)
root@as3:~/blogfy-site# python generate.py (这个就是生成/更新静态网站的命令)
root@as3:~/blogfy-site# cd generated
root@as3:~/blogfy-site/generated# ls
archive.html forum.html index.html post search.html tags
css img js rss.xml sitemap.xml
(可见~/blogfy-site/generated/就是静态网站的根目录)
root@as3:~/blogfy-site/generated# nohup Rwebserver 35203 > /dev/null &
访问http://as3.brite.biz:35203/即可看到网站效果。
演示地址:http://as3.brite.biz:35203,http://bf.briteming.yi.org
程序作者的演示地址:http://linux.sytes.net/
项目地址:https://github.com/wifiextender/blogfy
cd blogfy-site
root@as3:~/blogfy-site# ls
config.ini generated generate.py README.md static text posts
root@as3:~/blogfy-site# cd 'text posts'
root@as3:~/blogfy-site/text posts# ls
couldnot-resolve-host
root@as3:~/blogfy-site/text posts# nano test1
按couldnot-resolve-host文件的格式,新建源贴test1,
格式为:
title: test1
date: 2014-07-23 16:30
<p>这是测试1.</p>
然后,
root@as3:~/blogfy-site/text posts# cd ..
root@as3:~/blogfy-site# ls
config.ini generated generate.py README.md static text posts
root@as3:~/blogfy-site# nano config.ini
(把address的值改为你的域名地址,我的为http://bf.briteming.yi.org/,不要忘了最后的斜杠。还可把number of posts on front page的值改为你想要的值,我改为了3)
root@as3:~/blogfy-site# python generate.py (这个就是生成/更新静态网站的命令)
root@as3:~/blogfy-site# cd generated
root@as3:~/blogfy-site/generated# ls
archive.html forum.html index.html post search.html tags
css img js rss.xml sitemap.xml
(可见~/blogfy-site/generated/就是静态网站的根目录)
root@as3:~/blogfy-site/generated# nohup Rwebserver 35203 > /dev/null &
访问http://as3.brite.biz:35203/即可看到网站效果。
演示地址:http://as3.brite.biz:35203,http://bf.briteming.yi.org
程序作者的演示地址:http://linux.sytes.net/
项目地址:https://github.com/wifiextender/blogfy