memos/bin/server/cmd/profile_dev.go

18 lines
271 B
Go
Raw Normal View History

2022-02-03 10:32:03 +03:00
//go:build !release
// +build !release
package cmd
import (
"fmt"
)
// GetDevProfile will return a profile for dev.
func GetDevProfile(dataDir string) Profile {
return Profile{
mode: "8080",
2022-02-05 06:43:25 +03:00
port: 8080,
2022-02-03 10:32:03 +03:00
dsn: fmt.Sprintf("file:%s/memos_dev.db", dataDir),
}
}