如何在远程IIS Web服务器上创建Mercurial存储库 [英] How to create a Mercurial repository on a remote IIS web server

查看:162
本文介绍了如何在远程IIS Web服务器上创建Mercurial存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台运行Mercurial的hgwebdir.cgi的Windows Server 2003来提供存储库。推送/拉取等工作正如现有存储库所预期的那样。

I have a Windows Server 2003 running Mercurial's hgwebdir.cgi to serve repositories. Push/Pull etc is working as expected for existing repositories.

目前我正在使用远程桌面如果我需要服务器上的新存储库。

Currently I'm using remote desktop If I need a new repository on the server.

有更好的方法吗?命令行,web界面,cgi?

Is there a better way to do it? Command line, web interface, cgi?

推荐答案

Mercurial本身只允许在本地或通过ssh创建存储库。对于http,你需要通过命令行和 hg init 或通过RDP登录服务器,并且基本相同。

Mercurial by itself only allows for the creation of repositories locally or over ssh. For http you need to either log in to the server via command line and hg init or via RDP and do essentially the same.

然而,创建一个小的CGI脚本非常容易,该脚本将通过HTTP创建新的远程存储库。这是我构建的一个可以在unix上运行的,很容易适应windows:

It is, however, very easy to create a small CGI script that will create new remote repositories over HTTP. Here's one I built that works on unix and is likely easily adapted to windows:

http://ry4an.org/unblog/UnBlog/2009-09-17

这篇关于如何在远程IIS Web服务器上创建Mercurial存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆