Merge pull request #111 from marswj/master
统一文档和代码中RunMode
Showing
2 changed files
with
4 additions
and
4 deletions
| ... | @@ -97,11 +97,11 @@ It generates folders and files for your project, directory structure as follows: | ... | @@ -97,11 +97,11 @@ It generates folders and files for your project, directory structure as follows: |
| 97 | 97 | ||
| 98 | Beego uses development mode as default, you can use following code to change mode in your application: | 98 | Beego uses development mode as default, you can use following code to change mode in your application: |
| 99 | 99 | ||
| 100 | beego.RunMode = "pro" | 100 | beego.RunMode = "prod" |
| 101 | 101 | ||
| 102 | Or use configuration file in `conf/app.conf`, and input following content: | 102 | Or use configuration file in `conf/app.conf`, and input following content: |
| 103 | 103 | ||
| 104 | runmode = pro | 104 | runmode = prod |
| 105 | 105 | ||
| 106 | No differences between two ways. | 106 | No differences between two ways. |
| 107 | 107 | ... | ... |
| ... | @@ -101,11 +101,11 @@ | ... | @@ -101,11 +101,11 @@ |
| 101 | 101 | ||
| 102 | 我们可以通过如下的方式改变我们的模式: | 102 | 我们可以通过如下的方式改变我们的模式: |
| 103 | 103 | ||
| 104 | beego.RunMode = "pro" | 104 | beego.RunMode = "prod" |
| 105 | 105 | ||
| 106 | 或者我们在conf/app.conf下面设置如下: | 106 | 或者我们在conf/app.conf下面设置如下: |
| 107 | 107 | ||
| 108 | runmode = pro | 108 | runmode = prod |
| 109 | 109 | ||
| 110 | 以上两种效果一样。 | 110 | 以上两种效果一样。 |
| 111 | 111 | ... | ... |
-
Please register or sign in to post a comment