chore: update dev config (#857)

This commit is contained in:
boojack
2022-12-25 10:39:45 +08:00
committed by GitHub
parent 05b41804e3
commit afc9709484
5 changed files with 55 additions and 41 deletions

View File

@@ -48,7 +48,7 @@ func checkDSN(dataDir string) (string, error) {
func GetProfile() (*Profile, error) {
profile := Profile{}
flag.StringVar(&profile.Mode, "mode", "dev", "mode of server")
flag.IntVar(&profile.Port, "port", 8080, "port of server")
flag.IntVar(&profile.Port, "port", 8081, "port of server")
flag.StringVar(&profile.Data, "data", "", "data directory")
flag.Parse()