server:joel:gitweb:installation
Dies ist eine alte Version des Dokuments!
Inhaltsverzeichnis
gitweb (git.feggm.de)
Installation
- install package through repository
apt-get install gitweb - create web-directory
mkdir -p /var/www/git/cgi-bin
- create soft-link for gitweb.cgi
ln -s /usr/lib/cgi-bin/gitweb.cgi /var/www/git/cgi-bin
- copy gitweb files to web-directory
cp -a /usr/share/gitweb/* /var/www/git
- enable apache rewrite module
a2enmod rewrite
- create vhost config-file
vi /etc/apache2/sites-available/git
- enable virtual host
a2ensite git - add apache-user (e.g. www-data) to git-group (e.g. git)
- create softlink to public repo
ln -s /var/git/repositories/sample.git /var/cache/git/
- add a description to the repository
vi /var/git/repositories/sample.git/description
- set owner of repository
vi /var/git/repositories/sample.git/config
[gitweb] owner = "Your name"
- restart apache
service apache2 restart
<note>Repeat the steps 9 to 11 for all repositories which should be accessible through gitweb.</note>
Custom Theme
cd /var/www/git/ git clone https://github.com/kogakure/gitweb-theme.git cd static mv gitweb.css gitweb_original.css mv gitweb.js gitweb_original.js mv git-logo.png git-logo_original.png mv git-favicon.png git-favicon_original.png ln -s ../gitweb-theme/gitweb.css gitweb.css ln -s ../gitweb-theme/gitweb.js gitweb.js ln -s ../gitweb-theme/git-logo.png git-logo.png ln -s ../gitweb-theme/git-favicon.png git-favicon.png
<note>The repository has been cloned to git.feggm.de</note>
server/joel/gitweb/installation.1355330053.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
