Skip to content

Commit

Permalink
🐛 set default http sync registry
Browse files Browse the repository at this point in the history
Signed-off-by: cuisongliu <[email protected]>

# Conflicts:
#	pkg/filesystem/registry/sync.go
  • Loading branch information
cuisongliu committed Oct 19, 2023
1 parent b5efb59 commit 64b1f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/filesystem/registry/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func trimPortStr(s string) string {
}

func getRegistryServeCommand(pathResolver PathResolver, port string) string {
return fmt.Sprintf("%s registry serve filesystem -p %s --disable-logging=true %s",
return fmt.Sprintf("%s registry serve filesystem -p %s --disable-logging=true %s -d",
pathResolver.RootFSSealctlPath(), port, pathResolver.RootFSRegistryPath(),
)
}
Expand All @@ -150,7 +150,7 @@ func syncViaSSH(s *impl, targets []string) func(context.Context, string) error {
for i := range targets {
target := targets[i]
eg.Go(func() error {
return ssh.CopyDir(s.ssh, target, localDir, s.pathResolver.RootFSPath(), nil)
return ssh.CopyDir(s.ssh, target, localDir, s.pathResolver.RootFSRegistryPath(), nil)
})
}
return eg.Wait()
Expand Down

0 comments on commit 64b1f2f

Please sign in to comment.