|
|
@@ -1,22 +1,8 @@
|
|
|
-Yii 2 Advanced Project Template
|
|
|
+Yii 2 框架环境说明
|
|
|
===============================
|
|
|
|
|
|
-Yii 2 Advanced Project Template is a skeleton [Yii 2](http://www.yiiframework.com/) application best for
|
|
|
-developing complex Web applications with multiple tiers.
|
|
|
|
|
|
-The template includes three tiers: front end, back end, and console, each of which
|
|
|
-is a separate Yii application.
|
|
|
-
|
|
|
-The template is designed to work in a team development environment. It supports
|
|
|
-deploying the application in different environments.
|
|
|
-
|
|
|
-Documentation is at [docs/guide/README.md](docs/guide/README.md).
|
|
|
-
|
|
|
-[](https://packagist.org/packages/yiisoft/yii2-app-advanced)
|
|
|
-[](https://packagist.org/packages/yiisoft/yii2-app-advanced)
|
|
|
-[](https://travis-ci.org/yiisoft/yii2-app-advanced)
|
|
|
-
|
|
|
-DIRECTORY STRUCTURE
|
|
|
+文件目录说明
|
|
|
-------------------
|
|
|
|
|
|
```
|
|
|
@@ -52,3 +38,25 @@ environments/ contains environment-based overrides
|
|
|
tests contains various tests for the advanced application
|
|
|
codeception/ contains tests developed with Codeception PHP Testing Framework
|
|
|
```
|
|
|
+
|
|
|
+### 创建.env文件
|
|
|
+
|
|
|
+```shell
|
|
|
+cp .env.example .env
|
|
|
+```
|
|
|
+
|
|
|
+#### 1.数据库配置
|
|
|
+
|
|
|
+ ```php
|
|
|
+DB_DSN='mysql:host=127.0.0.1;dbname=huahuibao' # ip地址;数据库名称
|
|
|
+DB_USERNAME='root' # 数据库用户名
|
|
|
+DB_PASSWORD='353167' # 数据库密码
|
|
|
+```
|
|
|
+
|
|
|
+#### 2.redis 配置
|
|
|
+```php
|
|
|
+REDIS_HOST=127.0.0.1
|
|
|
+REDIS_PASSWORD=null # 密码为空,请写上 null
|
|
|
+REDIS_PORT=6379
|
|
|
+REDIS_DB=0
|
|
|
+```
|