Chore: Add stack ID + slug to cfg (#75227)

* add stack ID + slug to cfg

* add to environment section
This commit is contained in:
Will Browne 2023-09-21 14:45:43 +02:00 committed by GitHub
parent 224e2c9efb
commit e9e0e321b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -409,6 +409,9 @@ type Cfg struct {
Env string
StackID string
Slug string
ForceMigration bool
// Analytics
@ -1034,6 +1037,8 @@ func (cfg *Cfg) Load(args CommandLineArgs) error {
}
Env = valueAsString(iniFile.Section(""), "app_mode", "development")
cfg.Env = Env
cfg.StackID = valueAsString(iniFile.Section("environment"), "stack_id", "")
cfg.Slug = valueAsString(iniFile.Section("environment"), "slug", "")
cfg.ForceMigration = iniFile.Section("").Key("force_migration").MustBool(false)
InstanceName = valueAsString(iniFile.Section(""), "instance_name", "unknown_instance_name")
plugins := valueAsString(iniFile.Section("paths"), "plugins", "")