toml order
This commit is contained in:
11
main.go
11
main.go
@@ -301,16 +301,15 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func writePBConfig(path, serviceName string) error {
|
func writePBConfig(path, serviceName string) error {
|
||||||
const tmpl = `[pocketbase]
|
const tmpl = `[server]
|
||||||
version = "%s"
|
|
||||||
service = "%s"
|
|
||||||
volume = "%s"
|
|
||||||
|
|
||||||
[server]
|
|
||||||
ip = "127.0.0.1"
|
ip = "127.0.0.1"
|
||||||
port = 8090
|
port = 8090
|
||||||
domain = "example.com"
|
domain = "example.com"
|
||||||
|
|
||||||
|
[pocketbase]
|
||||||
|
version = "%s"
|
||||||
|
service = "%s"
|
||||||
|
volume = "%s"
|
||||||
`
|
`
|
||||||
return os.WriteFile(path, []byte(fmt.Sprintf(tmpl, defaultPocketbaseVersion, serviceName, defaultPocketbaseVolume)), 0o644)
|
return os.WriteFile(path, []byte(fmt.Sprintf(tmpl, defaultPocketbaseVersion, serviceName, defaultPocketbaseVolume)), 0o644)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user