从Pebble 1.x升级到2.3.2
从Pebble 1.x升级到2.3.2
1,修改pebble.properties,将dataDirectory=${user.home}/pebble修改为dataDirectory=${user.home}/blog
2,修改数据存储目录结构,新的为blog/blogs/default,blog/realm/username.properties
3,为了支持中文静态页面发布,修改FileStaticPageDAO.java代码:
将FileWriter writer = new FileWriter(destination);
修改为OutputStreamWriter writer = new OutputStreamWriter(new FileOutputStream(destination),"UTF-8");
4,Configuration->Utilities,重建索引,rebuild index
5,Configuration->Plugins,增加Properties,支持RSS的Ping服务:
XmlRpcNotificationListener.urlList=http://rpc.weblogs.com/RPC2,http://javablogs.com/xmlrpc
6,将静态页面的xml存储文件里的标签blogEntry改为staticPage
7,Configuration->Utilities,Reset plugins