如何在 Mac 工作站和 Windows 虚拟机之间共享本地 Subversion 存储库?
我想在运行 OS X Lion 的主计算机和该计算机上托管的运行 Windows 7 的虚拟机(通过 VMware)之间共享 Subversion 存储库。我不确定解决这个问题的最佳方法是什么。
我正在考虑在 OS X 端设置 Apache 和 Subversion 服务器,希望这将允许我的虚拟机使用 Tortoise SVN 之类的东西从 Windows 虚拟机访问存储库,并访问位于 http://macHostName/pathToRepository。这似乎是可行的,因为 OS X 端始终在运行。
另一种方法是在 Windows 虚拟机上设置 Apache 和 Subversion,这需要我每次想要从 OS X 端访问存储库时都运行虚拟机。也许可以在 IIS 中设置 Subversion?如果我不需要安装 Apache,这会节省一些时间。
不管怎样,我不确定进行此设置的最佳方法以及每个选项的注意事项是什么。我还没有找到一个很好的演练来展示如何使用 Apache 在任何操作系统上设置 Subversion 服务器。
然后,还有使用 svnserve 的选项,我不熟悉。对于不从 OS X 主机和 Windows 虚拟机提供服务的人来说,不由 Apache 等 HTTP 服务器提供服务的存储库是否可以访问?
任何指示将不胜感激。
I would like to share a Subversion repository between my main computer running OS X Lion and a virtual machine running Windows 7 hosted in this computer (via VMware). I am unsure what is the best way to go about this.
I am thinking of setting up Apache and Subversion server on the OS X side and hopefully that would allow my virtual to access the repository from the Windows virtual using something like Tortoise SVN and accessing the repository at http://macHostName/pathToRepository. This seems feasible since the OS X side is always running.
An alternative could be setting up Apache and Subversion on the Windows virtual, which would require me to run the virtual everytime I want to access the repository from the OS X side. Perhaps Subversion can be set up in IIS? That would save some time if I don't need to install Apache.
Either way, I am unsure of the best way to go about this set up and what the caveats of each option are. I also haven't found a good walkthrough that will show how to set up a Subversion server on any OS using Apache.
Then, there is also the option of using svnserve, which I am unfamiliar with. Will a repository not served by an HTTP server like Apache be accessible for whoever is not serving it from the OS X host and the Windows virtual?
Any pointers will be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Apache 和 svnserve 都使用网络协议,因此主机和来宾之间有关路由和防火墙的基本网络设置将是相同的。
如果您已经安装了 Apache 并且熟悉它,我建议使用它。否则我的建议是svnserve,因为它的设置和配置要简单得多。 SVN-Book 有一个章节用于在 Windows 和 OSX 中设置 svnserve。
Both Apache and svnserve are using network protocols, so the basic network setup between your host and your guest regarding routing and firewalls will be the same.
If you already have Apache installed and are familiar to it, I recommend to use it. Otherwise my recommendation is svnserve, because it is much simpler to setup and configure. The SVN-Book has a chapter for setting up svnserve both in Windows and in OSX.