diff --git a/validator/schema/upsun.json b/validator/schema/upsun.json index 012c408..11e536d 100644 --- a/validator/schema/upsun.json +++ b/validator/schema/upsun.json @@ -247,11 +247,13 @@ "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/" } }, - "required": [ - "start" - ], "additionalProperties": false, "title": "The command to launch your app", "description": "More information: \nhttps://docs.upsun.com/anchors/app/reference/web/commands/" diff --git a/validator/validator_test.go b/validator/validator_test.go index 8532be3..b0b7d0c 100644 --- a/validator/validator_test.go +++ b/validator/validator_test.go @@ -147,6 +147,10 @@ applications: - pdo_sqlite - "nodejs@20" - "python@3.12" + web: + commands: + pre_start: echo "pre_start" + post_start: echo "post_start" `, ), },