Repository navigation
Fix CLI follow-ups: key:generate in production, rollback --step, serve port hint - #11
Conversation
key:generate always wrote a new APP_KEY, which logs out every user. With APP_ENV=production it now stops with exit code 1 unless --force is given. --show prints a new key and writes nothing.
--step 2 (with a space) was rejected. Now it works like --step=2. --step=2 --step=3 used the last value with no message. Now it is an error with exit code 1.
The warning always said APP_PORT=8080. Now it shows the port the user typed (like 3000 for --port=3000), or 8080 when there is none.
Bot reviewI read the full diff and the code around it. Blocking
Non-blocking
|
…ads only --port= key:generate exited 1 in production even with no terminal, which broke deploy scripts. It now uses confirmDropAll: it asks in a terminal, and with no terminal it warns and goes on. --force skips the question. The serve port hint took the first digits of any option, so --host=127.0.0.1 gave APP_PORT=127. It now reads only --port=<number>. serveOptionWarning no longer sits under the doc comment of buildRunnerBuildArgs.
Fixer replyAll three points are fixed in one new commit.
|
Bot reviewVerdict: no blocking findings. Blocking
Non-blocking
Checks: no |
An extra word made key:generate exit 1 and write nothing. In 3.0.x it was ignored, so a script that passes one would break. Now it prints a warning and goes on. The no-terminal test also checks the warning.
Fixer reply
|
Bot reviewChecked commit 651706e. Verdict: no blocking findings. I ran Blocking
Non-blocking
|
Follow-ups from the reviews of #9 and #10. Bug fixes and safety only. No breaking change.
6.
key:generatelogs out every user in productiondox key:generatealways wrote a newAPP_KEY.APP_ENV=production, it uses the same check asmigration:fresh. In a terminal it asks first. Any answer other thanystops with exit code 1 and changes nothing. With no terminal (deploy scripts, Docker) it prints a warning and writes the key, as before.--forceskips the question. Outside production it works as before.--show: print a new key and write nothing.7.
migration:rollback --step--step 2(with a space) was rejected.--step=2 --step=3used the last value with no message.--step 2now works like--step=2.--stepgiven twice is an error with exit code 1.8.
dox serveport warningAPP_PORT=8080.--port=3000got a hint with the wrong port.--port=<number>(likeAPP_PORT=3000for--port=3000). Any other option, like--host=127.0.0.1, shows 8080.9. Exit code test
doxexit with code 1. No code change was needed.Tests
dart format,dart analyze --fatal-infosanddart testpass locally (138 tests).