-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to override UI port #1793
Add option to override UI port #1793
Conversation
@@ -158,6 +161,9 @@ func prepareCommand(options *DevServerOptions, host, port, namespace string) []s | |||
if options.DBFilename != "" { | |||
args = append(args, "--db-filename", options.DBFilename) | |||
} | |||
if options.UIPort != "" { | |||
args = append(args, "--ui-port", options.UIPort) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this also enable if not enabled? Docstring should mention that too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it does not enable the UI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am matching the behaviour of the dev server here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, maybe we should change dev server then because that's non obvious. I'd at least expect it to fail. Silently doing nothing no good
At bare minimum, the option should say it does nothing in that case if we don't change the behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in a lot of cases they are independently set via env vars and you may disable UI without changing port especially in hierarchical config cases like k8s/helm.
48f2b59
to
2fa452d
Compare
2fa452d
to
5e85fd5
Compare
Add option to override UI port
closes: #1788