Total Pageviews

Friday 18 October 2013

在linux vps上搭建极简的静态博客程序-vee

# git clone https://github.com/estrabd/vee.git
# cd vee

as3:~/vee# cd bin
as3:~/vee/bin# ls
Attic  GOALS  vee  veecat  veels  vee-rebuild
as3:~/vee/bin# ln -s ~/vee/bin/vee /usr/sbin/vee
as3:~/vee/bin# cd ..
as3:~/vee# vee -t "titlename" -m "正文" (这个就是发贴的命令。t是title的缩写,m是message的缩写)
as3:~/vee# ls
bin                INSTALL  README         t         wip
custom-formatters  patches  sample-config  TODO
pod      sample-hooks   vee.html
可以看到运行vee -t "titlename" -m "正文"   命令后,~/vee/目录里生成了vee.html文件。这个~/vee/目录就是静态网站的根目录。你可绑定一个域名比如vee.brite.biz到该目录。不过访问vee.brite.biz时,显示的是目录列表。我们可在~/vee/目录里放一个index.html文件,内容如下:
<meta HTTP-EQUIV=REFRESH CONTENT="1;URL=http://vee.brite.biz/vee.html">

这样访问http://vee.brite.biz/,就会跳到http://vee.brite.biz/vee.html

只是好像发表不了中文内容,会显示乱码。

演示站点:http://vee.brite.biz/,http://www.0x743.com

参考:http://estrabd.github.io/vee/
项目地址: https://github.com/estrabd/vee
https://github.com/estrabd/vee/issues/3,乱码问题的解决。