设置 Visual SVN 以供现实世界使用 [英] Setting up Visual SVN for real world use
问题描述
我刚刚在我的本地机器和托管我们网站的服务器上设置了 VisualSVN.我在安装软件时使用了标准的默认设置,但我对如何在我们的设置中使用它感到有些困惑.
I have just setup VisualSVN on my local machine and on our server that hosts our websites. I used the standard default settings when installing the software but I'm a bit confused how to use this with our setup.
我已经测试了安装,一切似乎都正常.在 Visual Studio 2008 中,我可以使用服务器/svn/域名文件夹的 IP"成功连接到网站文件并将其提交到服务器.如果我将浏览器指向 url服务器/svn/域名文件夹的 IP"并输入我的用户名和密码,我会看到一个包含我刚刚上传的所有文件的文件夹树.所以这些位工作正常.
I have tested the installation and everything appears to be working ok. In Visual Studio 2008, I can connect to and commit the website files to the server successfully using "IP of server/svn/domainname folder". If I point my browser to the url "IP of server/svn/domainname folder" and enter my username and password I see a folder tree with all of the files I just uploaded. So that bits working fine.
我的问题是我们如何测试我刚刚上传的网站?在我们的服务器上,我们所有的网站都存储在C:\sites\domainname"文件夹中.在 IIS 中,我们将该文件夹映射到域名,这样当有人输入 domainname.com 时,他们就会得到正确的网站.如何配置 Visual SVN 服务器设置以允许我使用我们当前拥有的C:\sites\domainname"设置?
My question is how could we test the website I just uploaded? On our server all our websites are stored in "C:\sites\domainname" folders. In IIS we map that folder to the domain name so when someone types in domainname.com they get the right website. How do I config the Visual SVN server setup to allow me use the "C:\sites\domainname" setup we currently have?
任何帮助将不胜感激,因为我对此感到非常困惑.
Any help would be greatly appreciated as I'm totally confused by this.
推荐答案
你可以做一个 post-commit hook,这会将 SVN 导出服务器到部署路径.
You could do a post-commit hook, that would SVN EXPORT the server to the deploy path.
这篇关于设置 Visual SVN 以供现实世界使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!