Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
34d4080e6104d9a57ba3f39c1fc0a2ffba6f4a43
1 parent
e0d57225
修改配置
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
util/cache/adapter/Memcached.class.php
util/dao/Dsn.class.php
website/config/Defines.class.php
website/config/core/db.test.config.php
util/cache/adapter/Memcached.class.php
View file @
34d4080
<?php
class
Util_Cache_Adapter_Memcached
implements
Util_Cache_Adapter_Interface
{
private
$_domain
=
'www.
dev
.yoho.cn'
;
//域名
private
$_domain
=
'www.
pre
.yoho.cn'
;
//域名
private
$_class
=
'default'
;
//分类
private
$_prefix
=
''
;
//前缀
...
...
util/dao/Dsn.class.php
View file @
34d4080
...
...
@@ -16,7 +16,7 @@ class Util_Dao_Dsn
public
static
function
getDbServer
(
$dbname
,
$readtag
=
true
,
$dbType
=
'Mysql'
,
$charset
=
'UTF8MB4'
)
{
$options
=
array
(
'dbname'
=>
$dbname
,
'dbname'
=>
'pre_'
.
$dbname
,
'readtag'
=>
$readtag
);
$server
=
Util_Server
::
factory
(
'Db'
,
$dbType
,
$options
)
->
loadBalanceServer
();
...
...
website/config/Defines.class.php
View file @
34d4080
...
...
@@ -113,7 +113,7 @@ class Config_Defines
// 静态资源目录
define
(
'SITE_RES'
,
'http://res.yohood.test.yoho.cn'
);
// 主站
define
(
'SITE_MAIN'
,
'http://yohood.test.yoho.cn'
);
define
(
'SITE_MAIN'
,
'http://yohood.
dev.
test.yoho.cn'
);
define
(
'QINIU_UPLOAD_STATE'
,
true
);
define
(
'QINIU_UPLOAD_CLASS'
,
'Lib_Utils_QiniuUpload'
);
define
(
'QINIU_UPLOAD_ACCESSKEY'
,
'cY9B5ZgON_7McTS5zV5nTeRyQ98MOcVD7W4eGVbE'
);
...
...
website/config/core/db.test.config.php
View file @
34d4080
[mysql]
yohood.username = yohodb
yohood.password = yohonj_9646_mysql
yohood.writers = 127.0.0.1:3310
yohood.readers = 127.0.0.1:3310
pre_yohood.username = yohodb
pre_yohood.password = yohonj_9646_mysql
pre_yohood.writers = 10.170.183.158:5510
pre_yohood.readers = 10.170.183.158:5510
...
...
Please
register
or
login
to post a comment