mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
fix: fix typo in database variable name (#939)
Co-authored-by: igophper <jianghanghui@k.app>
This commit is contained in:
parent
b115973b14
commit
17f039cbf5
@ -28,7 +28,7 @@ import (
|
|||||||
type DashboardCliParam struct {
|
type DashboardCliParam struct {
|
||||||
Version bool // 当前版本号
|
Version bool // 当前版本号
|
||||||
ConfigFile string // 配置文件路径
|
ConfigFile string // 配置文件路径
|
||||||
DatebaseLocation string // Sqlite3 数据库文件路径
|
DatabaseLocation string // Sqlite3 数据库文件路径
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -95,7 +95,7 @@ func initSystem() {
|
|||||||
func main() {
|
func main() {
|
||||||
flag.BoolVar(&dashboardCliParam.Version, "v", false, "查看当前版本号")
|
flag.BoolVar(&dashboardCliParam.Version, "v", false, "查看当前版本号")
|
||||||
flag.StringVar(&dashboardCliParam.ConfigFile, "c", "data/config.yaml", "配置文件路径")
|
flag.StringVar(&dashboardCliParam.ConfigFile, "c", "data/config.yaml", "配置文件路径")
|
||||||
flag.StringVar(&dashboardCliParam.DatebaseLocation, "db", "data/sqlite.db", "Sqlite3数据库文件路径")
|
flag.StringVar(&dashboardCliParam.DatabaseLocation, "db", "data/sqlite.db", "Sqlite3数据库文件路径")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if dashboardCliParam.Version {
|
if dashboardCliParam.Version {
|
||||||
@ -107,7 +107,7 @@ func main() {
|
|||||||
singleton.InitFrontendTemplates()
|
singleton.InitFrontendTemplates()
|
||||||
singleton.InitConfigFromPath(dashboardCliParam.ConfigFile)
|
singleton.InitConfigFromPath(dashboardCliParam.ConfigFile)
|
||||||
singleton.InitTimezoneAndCache()
|
singleton.InitTimezoneAndCache()
|
||||||
singleton.InitDBFromPath(dashboardCliParam.DatebaseLocation)
|
singleton.InitDBFromPath(dashboardCliParam.DatabaseLocation)
|
||||||
initSystem()
|
initSystem()
|
||||||
|
|
||||||
l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", singleton.Conf.ListenHost, singleton.Conf.ListenPort))
|
l, err := net.Listen("tcp", fmt.Sprintf("%s:%d", singleton.Conf.ListenHost, singleton.Conf.ListenPort))
|
||||||
|
Loading…
Reference in New Issue
Block a user