Total Pageviews

Thursday 24 October 2013

在linux vps上搭建基于nodejs的静态博客程序-jott

npm install -g jott
mkdir jott-site
cd jott-site
jott init (在当前目录下,会初始化博客结构)
jott post (这是创建空帖子的命令。The newly created post will be available in the src/jade/posts/ folder。
nano src/jade/posts/<title>.jade
jott build (这个就是创建/更新静态网站的命令。)
as3:~/jott-site# ls
index.html  jott.json  posts  src  www
(在当前目录~/jott-site下,生成了index.html,可见~/jott-site/就是静态网站的根目录。你可绑定一个域名到该目录)
as3:~/jott-site# nohup Rwebserver 3849 > /dev/null &
[2] 14005
as3:~/jott-site# nohup: ignoring input and redirecting stderr to stdout
as3:~/jott-site#

演示站点:http://as3.brite.biz:3849/,http://jott.brite.biz/

项目地址: https://github.com/jonsherrard/jott