我一直在寻找关于如何让hgweb在IIS上工作的像样的指导,但我没有找到太多的价值。
Mercurial维基上有this "step by step",但它不是很好。还有this和this,但同样,我找不到好的步骤来引导这些开始。
发布于 2009-05-20 09:12:32
我昨天刚刚安装了一个新的Mercurial实例,这里是1.7的更新说明:
hg clone https://www.mercurial-scm.org/repo/hg/- The hgweb.cgi file
- The contents of the Library.zip from your "C:\Program Files\Mercurial" folder
- The Templates folder from your "C:\Program Files\Mercurial"
中设置了Python.
- Enable CGI via the following: Control Panel -> Turn Windows Features On or Off -> Roles -> Web Server (IIS) -> Add Role Services -> Check CGI
- Create a new Web Site in IIS and make sure the physical path is the folder you created above
- In the Handler Mappings for the new website, select "Add Script Map". Enter **\*.cgi** for the request path, **c:\Python26\python.exe -u "%s"** for the Executable, and **Python** for the Name.
集合
c:\Mercurial\repos = c:\Mercurial\repos
config = "C:\Mercurial\hgweb.config"
另外,请查看Jeremy Skinners blog post。这是一个有点过时,但有一些额外的很好的步骤,如设置URL重写为更干净的URL。
发布于 2010-05-05 00:08:00
似乎自从Mercurial 1.5.2发布以来,这些教程并不能完全正确地工作。首先,hgwebdir.cgi已经被移除,现在被hgweb.cgi取代。
对我来说效果最好的指令是eworldui.net
http://www.eworldui.net/blog/post/2010/04/08/Setting-up-Mercurial-server-in-IIS7-using-a-ISAPI-module.aspx
这些说明适用于IIS 7或更高版本。如果你是在IIS6上设置的,我写了类似的针对Win2k3和IIS6.0的说明:
http://partialclass.blogspot.com/2010/05/setting-up-mercurial-server-on-win2k3.html
更新:在开始工作后不久,我了解到BitBucket改变了他们的定价方案,提供免费的,无限制的,私人托管:https://bitbucket.org/。当我最初在这个项目上工作时,我会在心跳中选择它。
发布于 2010-07-24 01:44:41
我发现Vampire Basic上的博客文章是一个很好的开始,但对于我所追求的东西,它并没有深入到足够的细节。
关于这一点,我写了一篇4部分的博客文章,让你从头开始使用IIS,包括Active Directory集成,为推送/拉入设置安全权限,自定义模板,我在这里重现了它,但它是相当冗长的,因为Mercurial实际上是为托管在Linux/Apache上而设计的:
http://www.endswithsaurus.com/2010/05/setting-up-and-configuring-mercurial-in.html
https://stackoverflow.com/questions/818571
复制相似问题