0

is there any tool to compile locally written code on remote workstation based linux? It is generally so slow and time consuming to coding over ssh or X11. Therefore I am looking fo an alternative tool to just compile the local code over remote machine. I write the code locally and send it to remote and see the result. I am looking for that kind of workaround>?

4

1 回答 1

2

在这种情况下,我遇到了两种常见的方法。他们都使用SSH。

  1. 在 SSHFS 上编辑文件
  2. rsync 文件和构建

在 SSHFS 上编辑文件

在此选项中,您的远程计算机应运行 SSH 服务器。您的本地机器将使用 Fuse/SSHFS 从远程机器挂载一个目录。您在本地机器上编辑代码并通过 SSH 发出构建命令。

rsync 文件和构建

在此选项中,您的源驻留在本地计算机上。您在本地机器上签出源,编辑它们。然后,您将拥有一个 shell 脚本,通过 SSH 将您的源代码同步到远程计算机并通过 SSH 构建。

在这两种情况下,您都必须使用 sed 或类似工具将远程机器输出的路径转换为本地机器上的路径,以识别错误消息并直接跳转到编辑器中的正确行。

于 2013-02-20T22:04:02.917 回答