Repository navigation
feat(cli): add lo1 doctor and fail lo1 up early on port conflicts - #25
Merged
Merged
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 5 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
fr3shw3b
force-pushed
the
feat/detach-dotenv
branch
from
November 16, 2026 23:00
1606b68 to
637fc0f
Compare
fr3shw3b
force-pushed
the
feat/doctor
branch
from
November 16, 2026 23:00
7b0bba7 to
2cbb21a
Compare
fr3shw3b
force-pushed
the
feat/detach-dotenv
branch
from
November 16, 2026 23:03
637fc0f to
f1ef2dc
Compare
fr3shw3b
force-pushed
the
feat/doctor
branch
2 times, most recently
from
November 16, 2026 23:13
471641e to
3ddc9e1
Compare
fr3shw3b
force-pushed
the
feat/detach-dotenv
branch
2 times, most recently
from
November 16, 2026 23:24
1f8d645 to
75368b3
Compare
fr3shw3b
force-pushed
the
feat/doctor
branch
2 times, most recently
from
November 17, 2026 00:02
3d9d10a to
7ae6f88
Compare
fr3shw3b
force-pushed
the
feat/detach-dotenv
branch
from
November 17, 2026 00:02
75368b3 to
118d751
Compare
fr3shw3b
force-pushed
the
feat/doctor
branch
from
November 17, 2026 00:44
7ae6f88 to
97f2277
Compare
fr3shw3b
force-pushed
the
feat/detach-dotenv
branch
from
November 17, 2026 00:44
118d751 to
a074839
Compare
`lo1 doctor` checks what a first `lo1 up` depends on and prints a fix for
each problem: Node.js 24+, Docker installed and its daemon running, Docker
Compose v2, Git, a valid lo1.yaml, free ports for the proxy and every
service, hosts file entries and ACME credentials. It exits 1 when any check
fails, and `--json` prints `{ ok, checks }`.
`lo1 up` now checks the same ports before starting anything and stops with
a PortConflictError naming each port, what needs it and the lo1.yaml
setting that changes it, instead of failing midway with a Docker error.
fr3shw3b
force-pushed
the
feat/doctor
branch
from
November 17, 2026 00:57
97f2277 to
996b494
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Base:
feat/detach-dotenv(#24). Retarget tomainonce the earlier PRs merge.lo1 doctorChecks what a first
lo1 updepends on, and prints a fix under each problem:lo1.yamllists repositories, otherwise a warning)lo1.yamlloads and validateslo1 upadds them)proxy.tls.modeisacmeExits 1 if any check fails.
--jsonprints{ "ok": boolean, "checks": [{ id, status, message, fix? }] }.--config <path>points it at another config file.Port conflicts at
lo1 uplo1 upchecks the same ports after cleaning up any previous run and before starting anything. A conflict stops it with:Ports are probed by connecting to
127.0.0.1and::1, rather than binding, so ports below 1024 aren't falsely reported on Linux. Ports published by theextraComposefile aren't checked; Docker still reports those.Testing
lo1 uprefusing to start on a conflict.lo1 doctoroutside a workspace (warning, exit 0), in a healthy workspace (exit 0), and with a service port taken (exit 1, same result in--json). The orchestrator stopped with the conflict error before starting anything.