代码拉取完成,页面将自动刷新
同步操作将从 wuwenbin/bookmark 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
db/bookmark.sql
到数据库;root/config/base.php
配置数据库连接参数及其他选项;root/config/oauth.php
;root/data/*
目录为可写权限;server {
listen 80;
server_name f.wuwenbin.info;
index index.php index.html index.htm;
root /var/www/bookmark;
error_log off;
access_log logs/bookmark_access.log;
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
# rewrite rules ...
}
配置文件root/config/base.php
修改:
switch (App::getName()) {
case "public":
$config["rewriteRules"] = array(
"User_Index" => "/[uid]",
"User_Login" => "/login",
"User_Logout" => "/logout",
"User_Rand" => "/rand",
);
break;
case "mobile":
$config["rewriteRules"] = array(
"User_Index" => "/m/[uid]",
"User_Login" => "/login",
"User_Logout" => "/logout",
);
break;
}
nginx配置url重写规则:
rewrite ^/bookmark/([0-9]+)$ /?do=User_Index&uid=$1&$args last;
rewrite ^/bookmark/login$ /?do=User_Login&$args last;
rewrite ^/bookmark/logout$ /?do=User_Logout&$args last;
rewrite ^/bookmark/rand$ /?do=User_Rand&$args last;
rewrite ^/bookmark/m/([0-9]+)$ /m/?do=User_Index&uid=$1&$args last;
apache配置.htaccess
url重写规则:
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([0-9]+)$ /?do=User_Index&uid=$1&%{QUERY_STRING} [L]
RewriteRule ^login$ /?do=User_Login&%{QUERY_STRING} [L]
RewriteRule ^logout$ /?do=User_Logout&%{QUERY_STRING} [L]
RewriteRule ^rand$ /?do=User_Rand&%{QUERY_STRING} [L]
RewriteRule ^m/([0-9]+)$ /m/?do=User_Index&uid=$1&%{QUERY_STRING} [L]
</ifmodule>
PHPMyAdmin
导入;SAE_MYSQL_*
开头的常量;SAE_TMP_PATH
,示例如下:配置文件root/config/base.php
添加如下代码:
// 模板编译路径
$config["templateCompilePath"] = SAE_TMP_PATH;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。