Commit 6aac202b authored by xiabin's avatar xiabin

配置优化

parent f249607f
......@@ -3,11 +3,8 @@ return [
'components' => [
'cache' => [
'class' => 'yii\redis\Cache',
'redis' => [
'hostname' => '192.168.1.185',
'port' => 6379,
'database' => 0,
]
'redis' => 'redis',
'keyPrefix' => 'yunya::'
],
'db' => [
'class' => 'yii\db\Connection',
......
......@@ -9,7 +9,7 @@ return [
'msg.userid' => '78',
'msg.account' => '276147613x',
'msg.password' => '276147613',
'msg.signature' => '【最课堂】',
'msg.signature' => '【云涯】',
'alipay' => [
'partner' => '2088701843067550',
'seller_id' => '2088701843067550',
......
......@@ -14,11 +14,17 @@ $config = [
'timeout' => 3600,
'name' => 'zuiektang-frontend',
'class' => 'yii\redis\Session',
'redis' => [
'hostname' => '192.168.1.185',
'port' => 6379,
'database' => 0,
]
'redis' => 'redis'
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
'logFile'=>'@runtime/logs/app-'.date('Y-m-d',time()).'.log',
],
],
],
],
];
......
......@@ -3,11 +3,8 @@ return [
'components' => [
'cache' => [
'class' => 'yii\redis\Cache',
'redis' => [
'hostname' => '192.168.1.21',
'port' => 6380,
'database' => 2,
]
'redis' => 'redis',
'keyPrefix' => 'yunya::'
],
'db' => [
'class' => 'yii\db\Connection',
......
......@@ -13,11 +13,19 @@ $config = [
'timeout' => 3600,
'name' => 'zuiektang-frontend',
'class' => 'yii\redis\Session',
'redis' => [
'hostname' => '192.168.1.21',
'port' => 6380,
'database' => 2,
]
'redis' => 'redis'
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
'except'=>['yii\web\HttpException:*', 'yii\i18n\I18N\*'],
'logFile'=>'@runtime/logs/app-'.date('Y-m-d',time()).'.log',
'logVars'=>[],
],
],
],
],
];
......
......@@ -35,15 +35,6 @@ return [
$user->save();
}
],
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
[
'class' => 'yii\log\FileTarget',
'levels' => ['error', 'warning'],
],
],
],
'errorHandler' => [
'errorAction' => 'site/error',
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment