Frage

I am able to publish the list of repositories using hgwebdir.cgi on Tomcat. However none of the links on the published repository work. What should the baseurl be set to? I set it to http://host:port/folder where the cgi-bin is right under the folder. The urls dont form correctly (dont have the hgwebdir.cgi in them) and i have no url rewriting setup. Is there some Tomcat configuration needed to get the urls working?

War es hilfreich?

Lösung

as far as I know hgwebdir.cgi should be installed via an HTTP Web server like Apache. It is not possible to run it under Tomcat: for this reason it is not working.

  • install an apache web server (try XAMPP if you are running under windows)
  • Install a python interpreter
  • Put the hgwebdir.cgi under the CGI dir of your apache web server.
  • Configure the hgwebdir.cgi so it can find python on PATH
  • You can find more information on the mercurial book http://hgbook.red-bean.com/read/
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top