git create.cgi
0.0.3
Perl CGI ง่าย ๆ ในการสร้างที่เก็บ Git
git-create.cgi เป็น Perl CGI ที่รวดเร็วและสกปรกในการสร้างที่เก็บ Git
มันมีการรวมขั้นพื้นฐานที่เป็นตัวเลือกกับ TRAC (ลงทะเบียนที่เก็บ GIT ใหม่ภายในอินสแตนซ์ TRAC)
git-create.cgi ได้รับใบอนุญาตภายใต้ MIT
# install git-create.cgi
make installgit-create.cgi ติดตั้งภายใน "$ (libexecdir)/git-create"
การกำหนดค่าทำได้ผ่านตัวแปรสภาพแวดล้อมของ Vhost:
การกำหนดค่าทำได้ภายใน Apache Git Vhost:
< VirtualHost git.kakwa.fr:80>
DocumentRoot /var/www/git/
ServerName git.kakwa.fr
< Directory " /var/www/git/repo/ " >
Allow from All
Options +ExecCGI
AllowOverride All
</ Directory >
# directory where to create the new git repos
SetEnv GITDIR /var/www/git/repo/
# path to the git command
SetEnv GITCMD /usr/bin/git
# git-http-backend Scriptalias value
SetEnv GITALIAS git
# activate trac support
SetEnv WITHTRAC true
# path to the trac environment
SetEnv TRACDIR /var/www/trac
# path to the trac-admin command
SetEnv TRACCMD /usr/bin/trac-admin
# git-http-backend variables
SetEnv GIT_HTTP_EXPORT_ALL
SetEnv GIT_PROJECT_ROOT /var/www/git/repo/
ScriptAlias /git /usr/lib/git-core/git-http-backend
# script alias to git-create.cgi (may change according to PREFIX in make call)
ScriptAlias / /usr/local/libexec/git-create/git-create.cgi
</ VirtualHost >