promotions
Build and Publish / BuildAndDeployAmd64 (push) Failing after 4s
Build and Publish / BuildAndDeployArm64 (push) Failing after 5s

This commit is contained in:
2026-07-04 10:51:08 +02:00
parent dddb5c699a
commit 31530be28f
+5 -1
View File
@@ -171,7 +171,11 @@ func main() {
controlPlaneConfig := actor.DefaultServerConfig()
promotionStore, err := promotions.NewStore("data/promotions.json")
promotionsPath := os.Getenv("PROMOTIONS_FILE")
if promotionsPath == "" {
promotionsPath = "data/promotions.json"
}
promotionStore, err := promotions.NewStore(promotionsPath)
if err != nil {
log.Fatalf("Error loading promotions: %v\n", err)
}