你将如何在共享主机中安装Gitweb?

时间:2010-09-30 05:32:28

标签: git gitweb

我最近在我的共享主机中安装了我的git,我想安装gitweb,但我不知道如何安装和配置它。

您是否有任何流程可以共享gitweb安装?

1 个答案:

答案 0 :(得分:4)

gitweb section of the git repo确实包含详细的installation instructions

仅引用第一部分:

GIT Web界面(gitweb)安装

  

首先,您必须使用“gitweb.cgi”从gitweb.perl生成make gitweb,然后使用“make install-gitweb”相应的文件gitweb.cgigitweb.js生成gitweb.cssgit-logo.pnggit-favicon.pnggit)到目的地   例如,如果/usr安装了gitwebdir前缀且/var/www/cgi-bin$ make prefix=/usr gitweb ;# as yourself # make gitwebdir=/var/www/cgi-bin install-gitweb ;# as root ,则可以执行以下操作:

autoconf
  

或者,您可以使用./configure生成的config.mak.autogen脚本来设置git二进制文件的路径(通过$ make configure ;# as yourself $ ./configure --prefix=/usr ;# as yourself $ make gitweb ;# as yourself # make gitwebdir=/var/www/cgi-bin \ install-gitweb ;# as root ),这样您就可以编写

[executable]
  

上面的示例假定您的Web服务器配置为在/var/www/cgi-bin/中运行{{1}}个文件作为服务器脚本(作为CGI脚本)。

相关问题