DeploySettings
DeploySettings objectHow a site's application is deployed (ADR 0170, 0173, 0174)
strategystring requiredAllowed values:"restart""blue_green""files"health_pathstring requireddrain_secondsinteger requiredrequire_approvalboolean requiredbuildobject requiredcpu_percentinteger requiredmemory_mbinteger requiredminutesinteger required
migrationobject requiredenabledboolean requiredkindstring requireddjango, alembic, prisma, knex, ef_bundle, artisan or custom
commandarray<string> requiredcustom only: the runtime (node, python, dotnet) or an .exe of the release, then plain arguments
databasesarray<string> requiredon_failurestring requiredAllowed values:"restore""keep"timeout_minutesinteger requiredacknowledged_one_wayboolean requiredMust be true to turn the gate on: going back in code does not go back in data
standby_portinteger required read-onlylive_releasestring required read-onlylive_epochinteger (int64) required read-onlystrategiesarray<string> required read-onlymigration_kindsarray<string> required read-only
Used by
| GET | /api/v1/tenants/{tid}/sites/{id}/deploy/settings | The site's deploy settings (ADR 0170, 0173, 0174) |
| PUT | /api/v1/tenants/{tid}/sites/{id}/deploy/settings | Change them. Turning the migration gate on needs database.write and acknowledged_one_way |