更新代码

This commit is contained in:
2019-08-09 10:04:11 +08:00
parent d1e5d45486
commit 0f6ac904b9
9 changed files with 45 additions and 46 deletions
-2
View File
@@ -13,8 +13,6 @@
// | 控制台配置
// +----------------------------------------------------------------------
return [
// 执行用户(Windows下无效)
'user' => null,
// 指令定义
'commands' => [
],
+18 -18
View File
@@ -30,39 +30,39 @@ return [
'connections' => [
'mysql' => [
// 数据库类型
'type' => Env::get('database.type', 'mysql'),
'type' => Env::get('database.type', 'mysql'),
// 服务器地址
'hostname' => Env::get('database.hostname', '127.0.0.1'),
'hostname' => Env::get('database.hostname', '127.0.0.1'),
// 数据库名
'database' => Env::get('database.database', ''),
'database' => Env::get('database.database', ''),
// 用户名
'username' => Env::get('database.username', 'root'),
'username' => Env::get('database.username', 'root'),
// 密码
'password' => Env::get('database.password', ''),
'password' => Env::get('database.password', ''),
// 端口
'hostport' => Env::get('database.hostport', '3306'),
'hostport' => Env::get('database.hostport', '3306'),
// 数据库连接参数
'params' => [],
'params' => [],
// 数据库编码默认采用utf8
'charset' => Env::get('database.charset', 'utf8'),
'charset' => Env::get('database.charset', 'utf8'),
// 数据库表前缀
'prefix' => Env::get('database.prefix', ''),
'prefix' => Env::get('database.prefix', ''),
// 数据库调试模式
'debug' => Env::get('database.debug', true),
'debug' => Env::get('database.debug', true),
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy' => 0,
'deploy' => 0,
// 数据库读写是否分离 主从式有效
'rw_separate' => false,
'rw_separate' => false,
// 读写分离后 主服务器数量
'master_num' => 1,
'master_num' => 1,
// 指定从服务器序号
'slave_no' => '',
'slave_no' => '',
// 是否严格检查字段是否存在
'fields_strict' => true,
// 是否需要进行SQL性能分析
'sql_explain' => false,
'fields_strict' => true,
// 是否需要断线重连
'break_reconnect' => false,
'break_reconnect' => false,
// 字段缓存路径
'schema_cache_path' => app()->getRuntimePath() . 'schema' . DIRECTORY_SEPARATOR,
],
// 更多的数据库配置信息
+1 -1
View File
@@ -31,7 +31,7 @@ return [
// 日志记录方式
'type' => 'File',
// 日志保存目录
'path' => app()->getRuntimePath() . 'log',
'path' => '',
// 单文件日志写入
'single' => false,
// 独立日志级别
-2
View File
@@ -42,8 +42,6 @@ return [
'controller_suffix' => false,
// 默认的路由变量规则
'default_route_pattern' => '[\w\.]+',
// 是否自动转换URL中的控制器和操作名
'url_convert' => true,
// 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
'request_cache' => false,
// 请求缓存有效期
+1
View File
@@ -16,6 +16,7 @@ return [
'view_suffix' => 'html',
// 模板文件名分隔符
'view_depr' => DIRECTORY_SEPARATOR,
'tpl_cache' => false, // 是否开启模板编译缓存,设为false则每次都会重新编译
// 模板引擎普通标签开始标记
'tpl_begin' => '{',
// 模板引擎普通标签结束标记
+1 -1
View File
@@ -14,7 +14,7 @@
// +----------------------------------------------------------------------
return [
// 内置Html 支持扩展
'type' => 'Console',
'type' => 'Html',
// 读取的日志通道名
'channel' => '',
];