# easy_install Pygments
# npm install -g grunt-cli
# npm install -g cabin
# cabin new cabin-site cabinjs/candy
# cd cabin-site
# grunt (出错)
# gem install compass
# grunt (还是出错)
# grunt --force (此时即可打开http://ur-vps-ip:5455)
# nohup grunt --force > /dev/null &
as3:~# cd cabin-site
as3:~/cabin-site# ls
dist Gruntfile.js node_modules package.json posts src
as3:~/cabin-site# ls dist
about.html images page projects.html styles
archives.html index.html posts scripts
as3:~/cabin-site#
(可见 ~/cabin-site/dist/就是静态网站的根目录,你可绑定一个域名到该目录)
发贴方法:
as3:~/cabin-site# cd posts
as3:~/cabin-site/posts# ls
candyTheme.md markdownTest.md samplePost.md
按 samplePost.md的内容,依样画葫芦,新建test1.md,格式如下:
{
title: "测试1",
date: "2013-10-23",
}
这是测试1.
保存更改,网站就自动更新了。这个程序很有特点,就是:”保存新建的帖子后,网站就自动更新了“,无需运行额外的命令来更新网站。
demo site: http://as3.brite.biz:5455,http://cabin.brite.biz
官方网站:http://www.cabinjs.com/
# npm install -g grunt-cli
# npm install -g cabin
# cabin new cabin-site cabinjs/candy
# cd cabin-site
# grunt (出错)
# gem install compass
# grunt (还是出错)
# grunt --force (此时即可打开http://ur-vps-ip:5455)
# nohup grunt --force > /dev/null &
as3:~# cd cabin-site
as3:~/cabin-site# ls
dist Gruntfile.js node_modules package.json posts src
as3:~/cabin-site# ls dist
about.html images page projects.html styles
archives.html index.html posts scripts
as3:~/cabin-site#
(可见 ~/cabin-site/dist/就是静态网站的根目录,你可绑定一个域名到该目录)
发贴方法:
as3:~/cabin-site# cd posts
as3:~/cabin-site/posts# ls
candyTheme.md markdownTest.md samplePost.md
按 samplePost.md的内容,依样画葫芦,新建test1.md,格式如下:
{
title: "测试1",
date: "2013-10-23",
}
这是测试1.
保存更改,网站就自动更新了。这个程序很有特点,就是:”保存新建的帖子后,网站就自动更新了“,无需运行额外的命令来更新网站。
demo site: http://as3.brite.biz:5455,http://cabin.brite.biz
官方网站:http://www.cabinjs.com/