windows - How to setup Mercurial and hgwebdir on IIS? -


I'm looking for decent instructions on how to get the hgwebdir to work on IG but I am very Much is worth not found.

Mercury is on the wiki, but it is not very good. Also there, but again, I can not find a good step to know where they start.

"post-text" itemprop = "text">

I just had to install a fresh Mercury Instance yesterday, here are the updated instructions for 1.7:

  1. (These instructions were tested 1.7).
  2. (For Mercury of 1.7, should use the x86 version of Python 2.6.6)
  3. You will need to download the hgweb.cgi file from Mercurial Source. You can download the source by running: hg clone https://www.mercurial-scm.org/repo/hg/
  4. create a folder that is yours In the Web application folder you will need to copy three things to this folder:

    • The hgweb.cgi file
    • The contents of Library.zip are stored in your "C: \ program files "Folder" from Mercury
    • Template folder from your "C: \ Program Files \ mercurial"
  5. You need to make sure Will you have Set up in Than IIS.

    • Enable CGI through: Control Panel -> Turn on or turn off features of Windows -> Roles -> Web server (IIS) -> Roll Add Service -> Check CGI
    • Create a new web site in IIS and make sure that the physical path is the folder created on you
    • In the handler mapping for the new website, "Script Map Add ". For the request path, select * .cgi Please enter c: \ Python26 \ python.exe -u "% s" and Python for the name
    • for executable A file named "hgweb.config" will need to create similar content as below. The path inside the file should be the location on your drive, where you want to store the mercurial repository:

      [archive] < Br> c: \ mercurial \ repos = c: \ mercurial \ repos

    • Edit the hgweb.cgi file and change the row where this path of your hgweb.configSets the like of the following (where is the hgweb.config file):

      config = "C: \ mercurial \ hgweb.config"

    • Now, a browser Open and navigate (or whatever URL path is set in the IIS) and you should see Mercurial Repositories page.

In addition, check out. It's a bit old, but there are some extra good steps like rewriting URLs for cleaner URLs.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -