Commit 66a9878
fix(cli): restore read-side common-port fallback for migrate info/doctor (#3149)
* fix(cli): restore read-side common-port fallback for migrate info/doctor
#2879 documented that read-only commands keep the legacy common-port
fallback (8080, 60000, 3000, 8500), but runMigration() gated every
migrate subcommand behind requireProjectConfig=true — so 'wheels
migrate info' and 'wheels migrate doctor' refused a server running on
8080, the first entry of their own documented fallback list, with
Wheels.ServerNotRunning.
The schema-mutating actions (latest/up/down) keep the strict
project-bound gate from #2878. info/doctor now pass
requireProjectConfig=false, and because a fallback attach can reach a
sibling project's server (reporting the WRONG app's migration state),
they print a yellow notice naming the attached port whenever the
fallback was used, with the lucee.json / PORT pin hint.
New call-site gating specs in ServerDetectionSpec capture the exact
requireProjectConfig flag runMigration() hands $requireRunningServer()
per action (info/doctor false; latest/up/down true) plus an end-to-end
no-config case asserting the project-bound refusal is gone.
Fixes #3080
Signed-off-by: Peter Amiri <peter@alurium.com>
* docs(web/guides): document the restored read-side fallback for migrate info/doctor
Replace the migrations-guide aside paragraph that deferred to #3080
with the resolved contract: info/doctor keep the common-port fallback
like the other read-side commands, and print a yellow notice when the
fallback (not lucee.json/.env) chose the port. Adds the changelog.d
fragment for the fix.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Peter Amiri <peter@alurium.com>
---------
Signed-off-by: Peter Amiri <peter@alurium.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 531f126 commit 66a9878
4 files changed
Lines changed: 123 additions & 10 deletions
File tree
- changelog.d
- cli/lucli
- tests/specs/services
- web/sites/guides/src/content/docs/v4-0-0/basics
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4322 | 4322 | | |
4323 | 4323 | | |
4324 | 4324 | | |
4325 | | - | |
4326 | | - | |
4327 | | - | |
4328 | | - | |
4329 | | - | |
4330 | | - | |
4331 | | - | |
| 4325 | + | |
| 4326 | + | |
| 4327 | + | |
| 4328 | + | |
| 4329 | + | |
| 4330 | + | |
| 4331 | + | |
| 4332 | + | |
| 4333 | + | |
| 4334 | + | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
| 4339 | + | |
| 4340 | + | |
| 4341 | + | |
| 4342 | + | |
| 4343 | + | |
| 4344 | + | |
| 4345 | + | |
| 4346 | + | |
| 4347 | + | |
| 4348 | + | |
| 4349 | + | |
| 4350 | + | |
| 4351 | + | |
| 4352 | + | |
| 4353 | + | |
| 4354 | + | |
| 4355 | + | |
| 4356 | + | |
| 4357 | + | |
| 4358 | + | |
| 4359 | + | |
4332 | 4360 | | |
4333 | 4361 | | |
4334 | 4362 | | |
| |||
4346 | 4374 | | |
4347 | 4375 | | |
4348 | 4376 | | |
4349 | | - | |
4350 | | - | |
| 4377 | + | |
| 4378 | + | |
4351 | 4379 | | |
4352 | 4380 | | |
4353 | 4381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
56 | 88 | | |
57 | 89 | | |
58 | 90 | | |
| |||
109 | 141 | | |
110 | 142 | | |
111 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
112 | 196 | | |
113 | 197 | | |
114 | 198 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments