toml order

This commit is contained in:
2026-01-13 17:32:57 +00:00
parent bf8e26a647
commit 895dee8b63

11
main.go
View File

@@ -301,16 +301,15 @@ func init() {
}
func writePBConfig(path, serviceName string) error {
const tmpl = `[pocketbase]
version = "%s"
service = "%s"
volume = "%s"
[server]
const tmpl = `[server]
ip = "127.0.0.1"
port = 8090
domain = "example.com"
[pocketbase]
version = "%s"
service = "%s"
volume = "%s"
`
return os.WriteFile(path, []byte(fmt.Sprintf(tmpl, defaultPocketbaseVersion, serviceName, defaultPocketbaseVolume)), 0o644)
}