Emlog for SAE是适合新浪sae使用的emlog修改版。
模板部分:模板是兼容emlog官方全部模板的。
插件部分:通常情况下,emlog官方插件也可以直接使用的,但是,需要上传图片或文件的插件,仍然需要修改才能使用。上传图片,可以使用SAE的storage,同时,本程序占用了名为“upload”的domain,可以直接使用。已整合相册 和 highslide 2个 插件。
在新浪SAE安装Emlog步骤和条件:
1.开启Mysql;
2.开启KVDB(存储缓存);
3.开启Storage并建立名为upload的domain
4.config.yaml加入以下2行rewrite规则(这步可省略,源码包已包含):
– rewrite: if (!is_dir() && !is_file() && path ~ \”/20(.*).(rar|zip|gif|jpg|jpeg|png|bmp)$\” ) goto \”/gostor.php?url=$1.$2\”
– rewrite: if (!is_dir() && !is_file() && path ~ \”/admin/20(.*).(rar|zip|gif|jpg|jpeg|png|bmp)$\” ) goto \”/gostor.php?url=$1.$2\”
– rewrite: if (!is_dir() && !is_file() && path ~ \”/(.*)\” ) goto \”/index.php/$1\”
5.打开robots.txt,将sitemap地址改为你自己的地址!
6.运行http://appname.si*n**aapp.com/install.php 进行博主设置。
安装完成后,需要通过SVN删除install.php,否则可能会被重置!
