41 lines
1.3 KiB
TeX
41 lines
1.3 KiB
TeX
% master: oeffentlicher_webserver-zugang.tex
|
|
% Öffentlicher Webserver-Zugang v0.1
|
|
% 2017-01-09 (Rx)
|
|
|
|
\section{Öffentlicher Webserver-Zugang}
|
|
%--------------------------------------
|
|
|
|
Anonymen Lese-Zugriff zu Deinem Projekt ermöglichen, per git clone
|
|
http://git.gitserver.loc/project.git.
|
|
|
|
- Hook aktivieren
|
|
|
|
\begin{verbatim}
|
|
cd project.git in das Projekt wechseln
|
|
mv hooks/post-update.sample hooks/post-update post-update umbenennen
|
|
chmod a+x hooks/post-update post-update ausfürbar machen
|
|
\end{verbatim}
|
|
|
|
- VirtualHost Eintrag zur Apache-Konfiguration hinzufügen
|
|
|
|
\begin{verbatim}
|
|
<VirtualHost *:80>
|
|
ServerName git.gitserver.loc
|
|
ServerAdmin webmaster@localhost
|
|
DocumentRoot /srv/git
|
|
# <Directory /srv/git/>
|
|
# Order allow, deny
|
|
# allow from all
|
|
# </Directory>
|
|
<Directory /srv/git/>
|
|
Options Indexes FollowSymLinks
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
ErrorLog ${APACHE_LOG_DIR}/git.gitserver.loc-error.log
|
|
CustomLog ${APACHE_LOG_DIR}/git.gitserver.loc-access.log combined
|
|
</VirtualHost>
|
|
\end{verbatim}
|
|
|
|
Nach dem nächsten push kann per "git clone http://git.gitserver.loc/project.git"
|
|
das Projekt anonym herunter geladen werden.
|