API referenceSections

DeploySettings

DeploySettings object

How a site's application is deployed (ADR 0170, 0173, 0174)

  • strategy string required
    Allowed values: "restart" "blue_green" "files"
  • health_path string required
  • drain_seconds integer required
  • require_approval boolean required
  • build object required
    • cpu_percent integer required
    • memory_mb integer required
    • minutes integer required
  • migration object required
    • enabled boolean required
    • kind string required

      django, alembic, prisma, knex, ef_bundle, artisan or custom

    • command array<string> required

      custom only: the runtime (node, python, dotnet) or an .exe of the release, then plain arguments

    • databases array<string> required
    • on_failure string required
      Allowed values: "restore" "keep"
    • timeout_minutes integer required
    • acknowledged_one_way boolean required

      Must be true to turn the gate on: going back in code does not go back in data

  • standby_port integer required read-only
  • live_release string required read-only
  • live_epoch integer (int64) required read-only
  • strategies array<string> required read-only
  • migration_kinds array<string> required read-only

Used by

GET/api/v1/tenants/{tid}/sites/{id}/deploy/settingsThe site's deploy settings (ADR 0170, 0173, 0174)
PUT/api/v1/tenants/{tid}/sites/{id}/deploy/settingsChange them. Turning the migration gate on needs database.write and acknowledged_one_way