service_name -> service

This commit is contained in:
2026-01-13 14:10:53 +00:00
parent 03033a0f53
commit b25ea30c2a

View File

@@ -292,7 +292,7 @@ func init() {
func writePBConfig(path, serviceName string) error { func writePBConfig(path, serviceName string) error {
const tmpl = `[pocketbase] const tmpl = `[pocketbase]
version = "%s" version = "%s"
service_name = "%s" service = "%s"
[server] [server]
ip = "127.0.0.1" ip = "127.0.0.1"
@@ -617,7 +617,7 @@ type serverConfig struct {
type pocketBaseConfig struct { type pocketBaseConfig struct {
Version string `toml:"version"` Version string `toml:"version"`
ServiceName string `toml:"service_name"` ServiceName string `toml:"service"`
} }
type deploymentContext struct { type deploymentContext struct {
@@ -646,7 +646,7 @@ func buildDeploymentContext() (*deploymentContext, error) {
serviceName := cfg.PocketBase.ServiceName serviceName := cfg.PocketBase.ServiceName
if serviceName == "" { if serviceName == "" {
return nil, fmt.Errorf("pb.toml missing [pocketbase].service_name") return nil, fmt.Errorf("pb.toml missing [pocketbase].service")
} }
serverIP := cfg.Server.IP serverIP := cfg.Server.IP