Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions validator/schema/upsun.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
4 changes: 4 additions & 0 deletions validator/validator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ applications:
- pdo_sqlite
- "nodejs@20"
- "[email protected]"
web:
commands:
pre_start: echo "pre_start"
post_start: echo "post_start"
`,
),
},
Expand Down
Loading