feat: add post-create support for env key in app.json

Closes #4498
This commit is contained in:
Jose Diaz-Gonzalez
2026-01-07 03:21:04 -05:00
parent ad00918891
commit 34c336c668
14 changed files with 653 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
{
"env": {
"REQUIRED_VAR": {
"description": "A required variable with no default",
"required": true
}
}
}

View File

@@ -0,0 +1,27 @@
{
"env": {
"SIMPLE_VAR": "simple_value",
"OBJECT_VAR": {
"description": "A variable with a default value",
"value": "object_default"
},
"SECRET_VAR": {
"description": "A generated secret",
"generator": "secret"
},
"OPTIONAL_VAR": {
"description": "An optional variable",
"required": false
},
"SYNC_VAR": {
"description": "A variable that syncs on every deploy",
"value": "sync_value",
"sync": true
}
},
"scripts": {
"dokku": {
"predeploy": "echo ENV_CHECK: SIMPLE_VAR=$SIMPLE_VAR OBJECT_VAR=$OBJECT_VAR"
}
}
}