Total Pageviews

Tuesday, 10 December 2013

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

cd /var/www (切换到你已经建立的网站的根目录)
git clone https://github.com/circa75/dropplets.git
cd dropplets
as3:/var/www/dropplets# ls
cache  config.php  dropplets  index.php  plugins  posts  README.md  templates
as3:/var/www/dropplets#
可见/var/www/dropplets就是静态网站的根目录。
访问http://urdomain.com/dropplets,会出现dropplets的安装界面,输入2次密码,即可安装成功。
点击页面左上角的图标,输入密码,即可登录。
as3:/var/www/dropplets# cd posts
as3:/var/www/dropplets/posts# nano test2.md
新建帖子test2.md,格式如下:
# 测试2 (#符号可去除,标题则靠最左写)
- Post Author Name "ym"
- Post Author Twitter Handle "xx"
- Publish Date "2013/12/10"
- Post Category "Random Thoughts"
- Post Status "published"

这是测试2.


保存更改后,网站就自动更新了。

演示站点:http://as3.brite.biz/dropplets/
项目地址:https://github.com/circa75/dropplets
官网:http://dropplets.com

这个程序(在此https://github.com/circa75/dropplets/archive/master.zip下载其源码包)也可在普通虚拟主机(需支持php)上使用。在本地写好md文件,然后登录页面,在页面里上传写好的md文件即可。

ref:
http://dropplets.com/,https://github.com/circa75/dropplets
http://www.ostraining.com/blog/general/dropplets/
http://web.appstorm.net/reviews/blogging-reviews/dropplets-a-somewhat-complex-flat-file-blogging-experience/
https://www.digitalocean.com/community/articles/how-to-install-dropplets-on-an-ubuntu-13-04-nginx-droplet
http://theindustry.cc/2013/03/04/dropplets-the-markdown-cms/