mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
修复sqlite数据库位置
This commit is contained in:
parent
a7891ce709
commit
1d6f63972a
@ -54,6 +54,9 @@ func RegisterDataBase() {
|
||||
}
|
||||
} else if adapter == "sqlite3" {
|
||||
database := beego.AppConfig.String("db_database")
|
||||
if strings.HasPrefix(database,"./") {
|
||||
database = filepath.Join(WorkingDirectory,string(database[1:]))
|
||||
}
|
||||
dbPath := filepath.Dir(database)
|
||||
os.MkdirAll(dbPath, 0777)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user