feat: add --bind and --port options to jetzig server CLI#243
Closed
gumruyanzh wants to merge 1 commit intojetzig-framework:mainfrom
Closed
feat: add --bind and --port options to jetzig server CLI#243gumruyanzh wants to merge 1 commit intojetzig-framework:mainfrom
gumruyanzh wants to merge 1 commit intojetzig-framework:mainfrom
Conversation
The server application already supports --bind and --port via Environment.zig, but the `jetzig server` CLI command didn't expose these options or forward them to the spawned executable. Now users can run: jetzig server --bind 0.0.0.0 --port 3000 jetzig server -b 0.0.0.0 -p 3000 Options are forwarded to the compiled application when spawning it. Defaults remain 127.0.0.1:8080 for backward compatibility. Closes #161 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
--bind/-band--port/-poptions to thejetzig serverCLI commandProblem
The server application already supports
--bindand--portviaEnvironment.zig, but thejetzig serverCLI command didn't expose or forward these options. Users had to run the compiled binary directly to change the bind address or port.Usage
Defaults remain
127.0.0.1:8080for backward compatibility. Non-default values are forwarded to the spawned executable as--bindand--portarguments.Test plan
zig buildsucceedszig build test --summary all- all tests passCloses #161
🤖 Generated with Claude Code