8000 fix: allow server startup without tunnel by sreya · Pull Request #2380 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

fix: allow server startup without tunnel #2380

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

Merged
merged 1 commit into from
Jun 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: allow server startup without tunnel
- Previously, specifying 'no' to the tunnel prompt just killed
  the process. It should be possible to start the server without
  a tunnel and not have the process killed.
  • Loading branch information
sreya committed Jun 15, 2022
commit f64ed71e57f1ea62fddab614f5fb1a5b68be1261
6 changes: 5 additions & 1 deletion cli/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,13 @@ func server() *cobra.Command {
Text: "Would you like to start a tunnel for simple setup?",
IsConfirm: true,
})
if errors.Is(err, cliui.Canceled) {

if err != nil && !errors.Is(err, cliui.Canceled) {
return err
}

// Don't tunnel if the user specifies no tunnel.
tunnel = !errors.Is(err, cliui.Canceled)
}
if err == nil {
devTunnel, devTunnelErrChan, err = devtunnel.New(ctxTunnel, logger.Named("devtunnel"))
Expand Down
0