service_name -> service
This commit is contained in:
6
main.go
6
main.go
@@ -292,7 +292,7 @@ func init() {
|
||||
func writePBConfig(path, serviceName string) error {
|
||||
const tmpl = `[pocketbase]
|
||||
version = "%s"
|
||||
service_name = "%s"
|
||||
service = "%s"
|
||||
|
||||
[server]
|
||||
ip = "127.0.0.1"
|
||||
@@ -617,7 +617,7 @@ type serverConfig struct {
|
||||
|
||||
type pocketBaseConfig struct {
|
||||
Version string `toml:"version"`
|
||||
ServiceName string `toml:"service_name"`
|
||||
ServiceName string `toml:"service"`
|
||||
}
|
||||
|
||||
type deploymentContext struct {
|
||||
@@ -646,7 +646,7 @@ func buildDeploymentContext() (*deploymentContext, error) {
|
||||
|
||||
serviceName := cfg.PocketBase.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
|
||||
|
||||
Reference in New Issue
Block a user