Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
beego
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
beego
Commits
3ac90df5
Commit
3ac90df5
authored
Mar 22, 2016
by
astaxie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1794 from youngsterxyf/issue1789
fix issue1789: when testing, load config explicitly and forcibly
parents
9e9671d8
549a39c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
beego.go
beego.go
+1
-0
config.go
config.go
+0
-4
No files found.
beego.go
View file @
3ac90df5
...
...
@@ -89,5 +89,6 @@ func TestBeegoInit(ap string) {
os
.
Setenv
(
"BEEGO_RUNMODE"
,
"test"
)
appConfigPath
=
filepath
.
Join
(
ap
,
"conf"
,
"app.conf"
)
os
.
Chdir
(
ap
)
LoadAppConfig
(
appConfigProvider
,
appConfigPath
)
initBeforeHTTPRun
()
}
config.go
View file @
3ac90df5
...
...
@@ -316,10 +316,6 @@ func LoadAppConfig(adapterName, configPath string) error {
return
fmt
.
Errorf
(
"the target config file: %s don't exist"
,
configPath
)
}
if
absConfigPath
==
appConfigPath
{
return
nil
}
appConfigPath
=
absConfigPath
appConfigProvider
=
adapterName
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment