Commit 024eb26
deploy: remove two staging papercuts (preflight project + backend --no-traffic)
Both surfaced while running the v1.1-r2 staged deploy by hand.
1. scripts/deploy-preflight.sh read only $PROJECT (default placeholder), but the
deploy scripts and .env.deploy.local set PROJECT_ID — so a deploy needed a
separate `export PROJECT=...` or the preflight aborted "unsafe". Now PROJECT
resolves from $PROJECT -> $PROJECT_ID -> PROJECT_ID in .env.deploy.local ->
placeholder, so it just works (incl. a standalone run).
2. backend/deploy-gcp.sh had no staged option, so a code redeploy always went to
100% immediately — unlike the frontend, which has DEPLOY_NO_TRAFFIC. Add the
same DEPLOY_NO_TRAFFIC=1 -> `--no-traffic --tag ${DEPLOY_TAG:-stg}` knob,
applied to BOTH image-only and full deploy modes, so a staged canary +
explicit promote is one command (proctor-api serves the live exam).
Comments-only behaviour change is opt-in; default deploy paths are unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent c6022b5 commit 024eb26
2 files changed
Lines changed: 23 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
233 | 245 | | |
234 | 246 | | |
235 | 247 | | |
236 | 248 | | |
237 | | - | |
| 249 | + | |
238 | 250 | | |
239 | 251 | | |
240 | 252 | | |
| |||
290 | 302 | | |
291 | 303 | | |
292 | 304 | | |
293 | | - | |
| 305 | + | |
| 306 | + | |
294 | 307 | | |
295 | 308 | | |
296 | 309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
0 commit comments