mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 12:11:28 +00:00
commit
29b1c8e1cb
@ -97,11 +97,11 @@ It generates folders and files for your project, directory structure as follows:
|
|||||||
|
|
||||||
Beego uses development mode as default, you can use following code to change mode in your application:
|
Beego uses development mode as default, you can use following code to change mode in your application:
|
||||||
|
|
||||||
beego.RunMode = "pro"
|
beego.RunMode = "prod"
|
||||||
|
|
||||||
Or use configuration file in `conf/app.conf`, and input following content:
|
Or use configuration file in `conf/app.conf`, and input following content:
|
||||||
|
|
||||||
runmode = pro
|
runmode = prod
|
||||||
|
|
||||||
No differences between two ways.
|
No differences between two ways.
|
||||||
|
|
||||||
|
@ -101,11 +101,11 @@
|
|||||||
|
|
||||||
我们可以通过如下的方式改变我们的模式:
|
我们可以通过如下的方式改变我们的模式:
|
||||||
|
|
||||||
beego.RunMode = "pro"
|
beego.RunMode = "prod"
|
||||||
|
|
||||||
或者我们在conf/app.conf下面设置如下:
|
或者我们在conf/app.conf下面设置如下:
|
||||||
|
|
||||||
runmode = pro
|
runmode = prod
|
||||||
|
|
||||||
以上两种效果一样。
|
以上两种效果一样。
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user