How to setup Mercurial central repository on shared hosting

前端 未结 4 1071
孤街浪徒
孤街浪徒 2021-01-14 10:53

I am trying to setup a central repository with shared hosting. I read all the way through this tutorial https://www.mercurial-scm.org/wiki/PublishingRepositories to no avail

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-14 11:39

    If the .cgi extension isn't already mapped to the cgi handler in your host's Apache config you either need a ScriptAlias or AddHandler line for your hgwebdir.cgi script. Actually you can get rid of all that unnecessary RewriteCond and RewriteRule stuff if you just do a single ScriptAlias:

    ScriptAlias /hg /home/username/central_repository/hgwebdir.cgi
    

    Also the repo has a /home/user/central_repository/projectname/.hg directory, right? Putting the contents of the .hg directly into projectname would be wrong.

    Lastly, try visiting it with your browser, not using clone. What do you see at http://ggap.sf.net/hg/ ? What is in the apache access and error logs? Hopefully you have access to the error log because that always has the best output for debugging this stuff.

提交回复
热议问题