Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cf60a3f4
authored
2013-04-11 11:07:32 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
warn views can't find when runmode is dev
1 parent
5a48c0ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
beego.go
beego.go
View file @
cf60a3f
...
...
@@ -52,7 +52,7 @@ func init() {
HttpAddr
=
""
HttpPort
=
8080
AppName
=
"beego"
RunMode
=
"
prod
"
//default runmod
RunMode
=
"
dev
"
//default runmod
AutoRender
=
true
RecoverPanic
=
true
PprofOn
=
false
...
...
@@ -80,7 +80,7 @@ func init() {
if
runmode
:=
AppConfig
.
String
(
"runmode"
);
runmode
!=
""
{
RunMode
=
runmode
}
else
{
RunMode
=
"
prod
"
RunMode
=
"
dev
"
}
if
ar
,
err
:=
AppConfig
.
Bool
(
"autorender"
);
err
!=
nil
{
AutoRender
=
true
...
...
@@ -245,7 +245,9 @@ func Run() {
}
err
:=
BuildTemplate
(
ViewsPath
)
if
err
!=
nil
{
if
RunMode
==
"dev"
{
Warn
(
err
)
}
}
BeeApp
.
Run
()
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment