mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-10 08:32:26 +08:00
chore: mongodb unit test
This commit is contained in:
@@ -136,9 +136,9 @@ type Config struct {
|
||||
func init() {
|
||||
// compatibility linux and windows
|
||||
var err error
|
||||
WorkDir, err = os.Getwd()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
if gopath := os.Getenv("GOPATH"); gopath != "" {
|
||||
WorkDir = filepath.Join(gopath, "src", "github.com",
|
||||
"eiblog", "eiblog")
|
||||
}
|
||||
path := filepath.Join(WorkDir, "conf", "app.yml")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user