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