From aa52e93e375a3e8e7cac904c3c2a633733b09516 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Wed, 15 Oct 2025 16:51:32 +0200 Subject: [PATCH 1/4] chore: add test case for pre_start on composable --- validator/validator_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validator/validator_test.go b/validator/validator_test.go index 8532be3..38de407 100644 --- a/validator/validator_test.go +++ b/validator/validator_test.go @@ -147,6 +147,9 @@ applications: - pdo_sqlite - "nodejs@20" - "python@3.12" + web: + commands: + pre_start: echo "pre_start" `, ), }, From fdf4a09555ce01973a2ef3da1ac185d3d8ea4e95 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Wed, 15 Oct 2025 17:00:18 +0200 Subject: [PATCH 2/4] fix: test case for pre_start on composable --- validator/schema/upsun.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/validator/schema/upsun.json b/validator/schema/upsun.json index 012c408..b4fe570 100644 --- a/validator/schema/upsun.json +++ b/validator/schema/upsun.json @@ -249,9 +249,6 @@ "description": "It will be restarted if it terminates. Do not use on PHP unless using a custom persistent process like React PHP or FrankenPHP. \nSee note: \nhttps://docs.upsun.com/anchors/app/reference/web/commands/start/" } }, - "required": [ - "start" - ], "additionalProperties": false, "title": "The command to launch your app", "description": "More information: \nhttps://docs.upsun.com/anchors/app/reference/web/commands/" From 72ec7de85a7a4c3e5c00d54831ef22c101fbfacd Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Fri, 17 Oct 2025 13:36:12 +0200 Subject: [PATCH 3/4] chore: add test case for post_start on composable --- validator/validator_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/validator/validator_test.go b/validator/validator_test.go index 38de407..b0b7d0c 100644 --- a/validator/validator_test.go +++ b/validator/validator_test.go @@ -150,6 +150,7 @@ applications: web: commands: pre_start: echo "pre_start" + post_start: echo "post_start" `, ), }, From 611f47dfd3d0725389e0ed959d9d3455485c29ae Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Fri, 17 Oct 2025 13:39:13 +0200 Subject: [PATCH 4/4] fix: test case for post_start on composable --- validator/schema/upsun.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/validator/schema/upsun.json b/validator/schema/upsun.json index b4fe570..11e536d 100644 --- a/validator/schema/upsun.json +++ b/validator/schema/upsun.json @@ -247,6 +247,11 @@ "type": "string", "title": "The command used to start the application", "description": "It will be restarted if it terminates. Do not use on PHP unless using a custom persistent process like React PHP or FrankenPHP. \nSee note: \nhttps://docs.upsun.com/anchors/app/reference/web/commands/start/" + }, + "post_start": { + "type": "string", + "title": "A command executed after the application is started", + "description": "More information: \nhttps://docs.upsun.com/anchors/app/reference/web/commands/" } }, "additionalProperties": false,