File tree Expand file tree Collapse file tree 5 files changed +77
-22
lines changed Expand file tree Collapse file tree 5 files changed +77
-22
lines changed Original file line number Diff line number Diff line change 1
1
.idea
2
2
composer.lock
3
3
* .log
4
+ thinkphp
Original file line number Diff line number Diff line change
1
+ sudo : false
2
+
3
+ language : php
4
+
5
+ branches :
6
+ only :
7
+ - stable
8
+
9
+ cache :
10
+ directories :
11
+ - $HOME/.composer/cache
12
+
13
+ before_install :
14
+ - composer self-update
15
+
16
+ install :
17
+ - composer install --no-dev --no-interaction --ignore-platform-reqs
18
+ - zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Core.zip .
19
+ - composer require --update-no-dev --no-interaction "topthink/think-image:^1.0"
20
+ - composer require --update-no-dev --no-interaction "topthink/think-migration:^1.0"
21
+ - composer require --update-no-dev --no-interaction "topthink/think-captcha:^1.0"
22
+ - composer require --update-no-dev --no-interaction "topthink/think-mongo:^1.0"
23
+ - composer require --update-no-dev --no-interaction "topthink/think-worker:^1.0"
24
+ - composer require --update-no-dev --no-interaction "topthink/think-helper:^1.0"
25
+ - composer require --update-no-dev --no-interaction "topthink/think-queue:^1.0"
26
+ - composer require --update-no-dev --no-interaction "topthink/think-angular:^1.0"
27
+ - composer require --dev --update-no-dev --no-interaction "topthink/think-testing:^1.0"
28
+ - zip -r --exclude='*.git*' --exclude='*.zip' --exclude='*.travis.yml' ThinkPHP_Full.zip .
29
+
30
+ script :
31
+ - php think unit
32
+
33
+ deploy :
34
+ provider : releases
35
+ api_key :
36
+ secure : TSF6bnl2JYN72UQOORAJYL+CqIryP2gHVKt6grfveQ7d9rleAEoxlq6PWxbvTI4jZ5nrPpUcBUpWIJHNgVcs+bzLFtyh5THaLqm39uCgBbrW7M8rI26L8sBh/6nsdtGgdeQrO/cLu31QoTzbwuz1WfAVoCdCkOSZeXyT/CclH99qV6RYyQYqaD2wpRjrhA5O4fSsEkiPVuk0GaOogFlrQHx+C+lHnf6pa1KxEoN1A0UxxVfGX6K4y5g4WQDO5zT4bLeubkWOXK0G51XSvACDOZVIyLdjApaOFTwamPcD3S1tfvuxRWWvsCD5ljFvb2kSmx5BIBNwN80MzuBmrGIC27XLGOxyMerwKxB6DskNUO9PflKHDPI61DRq0FTy1fv70SFMSiAtUv9aJRT41NQh9iJJ0vC8dl+xcxrWIjU1GG6+l/ZcRqVx9V1VuGQsLKndGhja7SQ+X1slHl76fRq223sMOql7MFCd0vvvxVQ2V39CcFKao/LB1aPH3VhODDEyxwx6aXoTznvC/QPepgWsHOWQzKj9ftsgDbsNiyFlXL4cu8DWUty6rQy8zT2b4O8b1xjcwSUCsy+auEjBamzQkMJFNlZAIUrukL/NbUhQU37TAbwsFyz7X0E/u/VMle/nBCNAzgkMwAUjiHM6FqrKKBRWFbPrSIixjfjkCnrMEPw=
37
+ file :
38
+ - ThinkPHP_Core.zip
39
+ - ThinkPHP_Full.zip
40
+ skip_cleanup : true
41
+ on :
42
+ tags : true
Original file line number Diff line number Diff line change 9
9
// | Author: yunwuxin <448901948@qq.com>
10
10
// +----------------------------------------------------------------------
11
11
12
- return [];
12
+ return [];
Original file line number Diff line number Diff line change 90
90
'url_param_type ' => 0 ,
91
91
// 是否开启路由
92
92
'url_route_on ' => true ,
93
+ // 路由使用完整匹配
94
+ 'route_complete_match ' => false ,
93
95
// 路由配置文件(支持配置多个)
94
96
'route_config_file ' => ['route ' ],
95
97
// 是否强制使用路由
104
106
'url_controller_layer ' => 'controller ' ,
105
107
// 表单请求类型伪装变量
106
108
'var_method ' => '_method ' ,
109
+ // 表单ajax伪装变量
110
+ 'var_ajax ' => '_ajax ' ,
111
+ // 表单pjax伪装变量
112
+ 'var_pjax ' => '_pjax ' ,
113
+ // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
114
+ 'request_cache ' => false ,
115
+ // 请求缓存有效期
116
+ 'request_cache_expire ' => null ,
107
117
108
118
// +----------------------------------------------------------------------
109
119
// | 模板设置
Original file line number Diff line number Diff line change 11
11
12
12
return [
13
13
// 数据库类型
14
- 'type ' => 'mysql ' ,
14
+ 'type ' => 'mysql ' ,
15
15
// 服务器地址
16
- 'hostname ' => '127.0.0.1 ' ,
16
+ 'hostname ' => '127.0.0.1 ' ,
17
17
// 数据库名
18
- 'database ' => '' ,
18
+ 'database ' => '' ,
19
19
// 用户名
20
- 'username ' => 'root ' ,
20
+ 'username ' => 'root ' ,
21
21
// 密码
22
- 'password ' => '' ,
22
+ 'password ' => '' ,
23
23
// 端口
24
- 'hostport ' => '' ,
24
+ 'hostport ' => '' ,
25
25
// 连接dsn
26
- 'dsn ' => '' ,
26
+ 'dsn ' => '' ,
27
27
// 数据库连接参数
28
- 'params ' => [],
28
+ 'params ' => [],
29
29
// 数据库编码默认采用utf8
30
- 'charset ' => 'utf8 ' ,
30
+ 'charset ' => 'utf8 ' ,
31
31
// 数据库表前缀
32
- 'prefix ' => '' ,
32
+ 'prefix ' => '' ,
33
33
// 数据库调试模式
34
- 'debug ' => true ,
34
+ 'debug ' => true ,
35
35
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
36
- 'deploy ' => 0 ,
36
+ 'deploy ' => 0 ,
37
37
// 数据库读写是否分离 主从式有效
38
- 'rw_separate ' => false ,
38
+ 'rw_separate ' => false ,
39
39
// 读写分离后 主服务器数量
40
- 'master_num ' => 1 ,
40
+ 'master_num ' => 1 ,
41
41
// 指定从服务器序号
42
- 'slave_no ' => '' ,
42
+ 'slave_no ' => '' ,
43
43
// 是否严格检查字段是否存在
44
- 'fields_strict ' => true ,
45
- // 数据集返回类型 array 数组 collection Collection对象
46
- 'resultset_type ' => 'array ' ,
47
- // 是否自动写入时间戳字段
48
- 'auto_timestamp ' => false ,
44
+ 'fields_strict ' => true ,
45
+ // 数据集返回类型
46
+ 'resultset_type ' => 'array ' ,
47
+ // 自动写入时间戳字段
48
+ 'auto_timestamp ' => false ,
49
+ // 时间字段取出后的默认时间格式
50
+ 'datetime_format ' => 'Y-m-d H:i:s ' ,
49
51
// 是否需要进行SQL性能分析
50
- 'sql_explain ' => false ,
52
+ 'sql_explain ' => false ,
51
53
];
You can’t perform that action at this time.
0 commit comments