Difference between revisions of "Versiebeheer van configuraties met Git"

From PostgreSQL_wiki
Jump to: navigation, search
(New page: <hr/> Terug naar: Webhuis Support Infrastructuur)
 
Line 1: Line 1:
  +
= Install =
  +
De installatie is:
  +
<pre>
  +
root@wbhs-pkg:~# apt-get install git git-clone gitweb
  +
root@wbhs-pkg:/var/www/git# mkdir /var/cache/git /var/www/git
  +
</pre>
  +
== Apache ==
  +
<pre>
  +
VirtualHost *:80>
  +
ServerName wbhs-pkg.webhuis.nl
  +
ServerAdmin martin@webhuis.nl
  +
DocumentRoot /var/www/git
  +
ErrorLog /var/log/apache2/wbhs-pkg.webhuis.nl-error.log
  +
TransferLog /var/log/apache2/wbhs-pkg.webhuis.nl-access.log
   
  +
<Directory /var/www/git>
  +
Allow from all
  +
AllowOverride all
  +
Order allow,deny
  +
Options ExecCGI
  +
<Files gitweb.cgi>
  +
SetHandler cgi-script
  +
</Files>
  +
</Directory>
  +
DirectoryIndex gitweb.cgi
  +
SetEnv GITWEB_CONFIG /etc/gitweb.conf
  +
</VirtualHost>
  +
</pre>
  +
== gitweb ==
  +
<pre>
  +
# path to git projects (<project>.git)
  +
$projectroot = "/var/cache/git";
  +
  +
# directory to use for temp files
  +
$git_temp = "/tmp";
  +
  +
# target of the home link on top of all pages
  +
#$home_link = $my_uri || "/";
  +
  +
# html text to include at home page
  +
$home_text = "indextext.html";
  +
  +
# file with project list; by default, simply scan the projectroot dir.
  +
$projects_list = $projectroot;
  +
  +
# stylesheet to use
  +
$stylesheet = "gitweb.css";
  +
  +
# javascript code for gitweb
  +
$javascript = "gitweb.js";
  +
  +
# logo to use
  +
$logo = "git-logo.png";
  +
# the 'favicon'
  +
$favicon = "git-favicon.png";
  +
</pre>
 
<hr/>
 
<hr/>
 
Terug naar: [[Webhuis Support Infrastructuur]]
 
Terug naar: [[Webhuis Support Infrastructuur]]

Revision as of 09:13, 21 September 2013

Install

De installatie is:

root@wbhs-pkg:~# apt-get install git git-clone gitweb
root@wbhs-pkg:/var/www/git# mkdir /var/cache/git /var/www/git

Apache

VirtualHost *:80>
  ServerName wbhs-pkg.webhuis.nl
  ServerAdmin martin@webhuis.nl
  DocumentRoot /var/www/git
  ErrorLog /var/log/apache2/wbhs-pkg.webhuis.nl-error.log
  TransferLog /var/log/apache2/wbhs-pkg.webhuis.nl-access.log

  <Directory /var/www/git>
   Allow from all
   AllowOverride all
   Order allow,deny
   Options ExecCGI
   <Files gitweb.cgi>
    SetHandler cgi-script
   </Files>
  </Directory>
  DirectoryIndex gitweb.cgi
  SetEnv  GITWEB_CONFIG  /etc/gitweb.conf
</VirtualHost>

gitweb

# path to git projects (<project>.git)
$projectroot = "/var/cache/git";

# directory to use for temp files
$git_temp = "/tmp";

# target of the home link on top of all pages
#$home_link = $my_uri || "/";

# html text to include at home page
$home_text = "indextext.html";

# file with project list; by default, simply scan the projectroot dir.
$projects_list = $projectroot;

# stylesheet to use
$stylesheet = "gitweb.css";

# javascript code for gitweb
$javascript = "gitweb.js";

# logo to use
$logo = "git-logo.png";
# the 'favicon'
$favicon = "git-favicon.png";

Terug naar: Webhuis Support Infrastructuur