2

I recently installed my git in my shared hosting now I want to install gitweb but I don't know how to install and configure it.

Do you have any process to share on gitweb installation?

4

1 回答 1

4

git repo的gitweb 部分确实包含详细的安装说明

仅引用第一部分:

GIT 网页界面 (gitweb) 安装

首先,您必须使用 " "生成相应gitweb.cgi的文件(、、和)到它们的目的地。 例如,如果was (or is) 安装了前缀 and is ,你可以这样做:gitweb.perlmake gitwebmake install-gitwebgitweb.cgigitweb.jsgitweb.cssgit-logo.pnggit-favicon.png
git/usrgitwebdir/var/www/cgi-bin

$ make prefix=/usr gitweb                            ;# as yourself
# make gitwebdir=/var/www/cgi-bin install-gitweb     ;# as root

或者,您可以使用autoconf生成的./configure脚本来设置 git 二进制文件的路径(通过config.mak.autogen),因此您可以改为编写

$ make configure                     ;# as yourself
$ ./configure --prefix=/usr          ;# as yourself
$ make gitweb                        ;# as yourself
# make gitwebdir=/var/www/cgi-bin \
       install-gitweb                ;# as root

上面的示例假定您的 Web 服务器配置为将[executable]文件/var/www/cgi-bin/作为服务器脚本(作为 CGI 脚本)运行。

于 2010-09-30T06:11:29.200 回答