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 {
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user