Skip to content

Commit

Permalink
change test database to yii2_cms_test
Browse files Browse the repository at this point in the history
  • Loading branch information
cui-liang committed Jul 22, 2017
1 parent bcef00d commit bfc1c55
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ install:
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" frontend/config/main.php
sed -i "s/'cookieValidationKey' => ''/'cookieValidationKey' => 'testkey'/" backend/config/main.php
before_script:
- mysql -e 'CREATE DATABASE yii2advanced_test;'
- mysql -e 'CREATE DATABASE yii2_cms_test;'
- php yii_test migrate --interactive=0

script:
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ YiiCMS群:7594839 (加群请注明:YiiCMS)


目录结构
-------------------
--------

```
common
Expand Down Expand Up @@ -50,3 +50,14 @@ frontend
vendor/ contains dependent 3rd-party packages
environments/ contains environment-based overrides
```

安装方式
--------

```
composer create-project --prefer-dist yiichina/yii2-cms <project-name>
cd <project-name>
./init
./yii migrate
```
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"yiichina/yii2-icons": "*",
"yiichina/yii2-auth": "*",
"yiichina/yii2-comments": "*",
"yiichina/yii2-simditor": "*"
"yiichina/yii2-simditor": "*",
"yiichina/yii2-treegrid": "*"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.0.0",
Expand All @@ -29,7 +30,13 @@
"codeception/verify": "~0.3.1"
},
"config": {
"process-timeout": 1800
"process-timeout": 1800,
"fxp-asset":{
"installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
},
"repositories": [
{
Expand Down
100 changes: 80 additions & 20 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion environments/dev/common/config/test-local.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[
'components' => [
'db' => [
'dsn' => 'mysql:host=localhost;dbname=yii2advanced_test',
'dsn' => 'mysql:host=localhost;dbname=yii2_cms_test',
]
],
]
Expand Down

0 comments on commit bfc1c55

Please sign in to comment.