git instaweb Apache Mac ( Lion) :
- root:
cd /usr/sbin; ln -s httpd apache2
- root: /usr/libexec/git -core/git -instaweb:
LockFile "$fqgitdir/gitweb/$httpd_only/access.lock"
User UsernameForYourGitServer
PidFile "$fqgitdir/pid"
- , git , cd
git instaweb --httpd apache2 -m /usr/libexec/apache2
, , .. " ". gitweb , 1234, 80, .
, /Library/LaunchDaemons/git -web.plist, :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>GitWeb</string>
<key>WorkingDirectory</key>
<string>/Wherever/Your/Repository/Is</string>
<key>ProgramArguments</key>
<array>
<string>git</string>
<string>instaweb</string>
<string>--httpd</string>
<string>apache2</string>
<string> -m </string>
<string> / usr / libexec / apache2 </string>
</array>
<key> KeepAlive </key>
<true />
</dict>
</plist> source
share