Deploy script: rollback steps
Explain the downtime window and health check
Prompt
Copy it whole, then replace the brackets with your own contentHandle this code task: Deploy script - include rollback steps. Code or error: [paste] Environment: [language/version/framework] Requirements: state the downtime window and health checks. Give the assessment first, then the changes, then how to verify.
Replace the text in [ ] with your own situation; ask long tasks in stages.
How to get better results
Read this before you fill it inFor shipping a new version that may need rollback.
Give the conclusion and impact scope first, then only the changed snippets (no full files), and finally one check that proves it works. Flag risky spots separately.
This change touches 3 APIs and 1 table schema; it must roll back within 5 minutes and lose no database data.
Just saying "write a deploy script" with no rollback step No health check, so you don't know if it started Migration and code out of sync, rollback fails
If problems remain after the fix, paste the new error and the changed snippet back; keep debugging on the original approach, don't switch approaches and rewrite.
More like this: Writing code prompts · All prompts