带 SVN 的网站:工作副本:为本地 svn 结帐配置 Apache httpd.conf - 如何?
我曾经使用过 SVN 和 Apache,但没有一起使用过。
我的客户在一个地址有一个实时站点,在另一个地址的另一台机器上有一个 SVN 存储库。
我已将整个 9 码检出到运行 Apache/2.0.59 的本地 (Windows XP) 计算机上的目录。 (配置本地站点通常没有问题。)
我在结帐时得到 3 个目录:
分支机构,
标签,
trunk
我的 DocumentRoot 应该使用哪一个?
感谢您的阅读。
I have worked with SVN, and with Apache but not together.
My customer has a live site at one address, and an SVN repository on another machine at another address.
I have checked out the whole 9 yards to a directory on my local (Windows XP) machine which is running Apache/2.0.59. (There are generally no problems configuring local sites.)
I get 3 directories in the checkout:
branches,
tags,
trunk
Which one should I use for my DocumentRoot ?
Thanks for reading.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能检查了错误的目录。通常您会查看
trunk
,或者branches
或tags
的子目录。否则,您最终可能会检查数十份代码副本,这些副本的版本略有不同。至于文档根,这取决于项目的组织方式。它可能与您签出的目录相同,也可能是子目录。后者更有可能,因为该项目可能包含一些不应从网络访问的代码。
You're probably checking out the wrong directory. Usually you check out either
trunk
, or a subdirectory ofbranches
ortags
. Otherwise you could end up checking out dozens of copies of the code, in slightly different versions.As for the document root, that depends on how the project is organized. It could be the same as the directory you checked out, or it could be a subdirectory. The latter is more likely, since the project will probably contain some code that shouldn't be accessible from the web.
您绝对应该使用您需要使用的那个。任何该目录都可以包含源代码。我们不知道在这种特殊情况下您需要哪一个。
You definitely should use the one you need to use. Any that directory can contain sources. And we don't know which one you need in this particular case.