Skip to content

Commit ef789bd

Browse files
committed
use background on ssh command exec
1 parent 632e12a commit ef789bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coder/gateway/CoderRemoteConnectionHandle.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class CoderRemoteConnectionHandle {
357357
private fun exec(workspace: WorkspaceProjectIDE, command: String): String {
358358
logger.info("Running command `$command` in ${workspace.hostname}:${workspace.idePathOnHost}/bin...")
359359
return ProcessExecutor()
360-
.command("ssh", "-t", workspace.hostname, "cd '${workspace.idePathOnHost}' ; cd bin ; $command")
360+
.command("ssh", "-t", CoderCLIManager.getBackgroundHostName(workspace.hostname), "cd '${workspace.idePathOnHost}' ; cd bin ; $command")
361361
.exitValues(0)
362362
.readOutput(true)
363363
.execute()

0 commit comments

Comments
 (0)