Skip to content

Commit ee999a5

Browse files
baasith6cursoragent
andcommitted
Fix remote deploy: pipe bash script via ssh stdin.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 8e72968 commit ee999a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/deploy-vm.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ docker compose ps --format 'table {{.Name}}\t{{.Status}}'
121121

122122
Write-Host "==> Running remote deploy..."
123123
try {
124-
Invoke-Checked "SSH deploy" { ssh @sshArgs "${VmUser}@${VmHost}" $remoteScript }
124+
Invoke-Checked "SSH deploy" {
125+
$remoteScript | ssh @sshArgs "${VmUser}@${VmHost}" "bash -s"
126+
}
125127
} finally {
126128
if ($preparedKey -and (Test-Path $preparedKey)) { Remove-Item $preparedKey -Force -ErrorAction SilentlyContinue }
127129
}

0 commit comments

Comments
 (0)