{"id":1002,"date":"2011-01-29T09:02:36","date_gmt":"2011-01-29T00:02:36","guid":{"rendered":"http:\/\/www.kazu.tv\/blog\/?p=1002"},"modified":"2011-01-29T09:02:36","modified_gmt":"2011-01-29T00:02:36","slug":"gitweb","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2011\/01\/29\/gitweb\/","title":{"rendered":"gitweb"},"content":{"rendered":"<p>\u5148\u65e5gitosis\u3068\u3044\u3046git\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u95a2\u3059\u308b<a href=\"http:\/\/www.kazu.tv\/blog\/archives\/001006.html\" target=\"_blank\">\u30a8\u30f3\u30c8\u30ea<\/a>\u3092\u66f8\u3044\u305f\u304c\u3001\u4eca\u56de\u306fgitweb\u3068\u3044\u3046\u3001web\u304b\u3089\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u95b2\u89a7\u3059\u308b\u30c4\u30fc\u30eb\u306b\u3064\u3044\u3066\u66f8\u304f\u3002<\/p>\n<h3>\u25a0\u74b0\u5883<\/h3>\n<ul>\n<li>CentOS 5.5<\/li>\n<li>Apache 2.2.3 \uff08yum\u3067\u5165\u308c\u305f\u6a19\u6e96\u306e\u3084\u3064\uff09<\/li>\n<li>git 1.5.5.6 \uff08\u3042\u307e\u308a\u95a2\u4fc2\u306a\u3044\u3051\u3069\uff09<\/li>\n<\/ul>\n<h3>\u25a0\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002\u6a19\u6e96\u3058\u3083\u306a\u304f\u3066 centosplus \u306b\u5165\u3063\u3066\u308b\u306e\u304b\u306a\uff1f<\/p>\n<pre class=\"brush: plain; code\">\n$ sudo yum install gitweb<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc<\/p>\n<pre class=\"brush: plain; code\">\n$ sudo cp \/usr\/share\/doc\/gitosis-0.2\/gitweb.conf \/etc\/<\/pre>\n<p><!--more--><\/p>\n<h3>\u25a0\u8a2d\u5b9a<\/h3>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u5b9f\u8cea\u6570\u884c\u3002\u4ee5\u4e0b\u3001\u30b3\u30e1\u30f3\u30c8\u3067\u7c21\u5358\u306b\u8aac\u660e\u3002<\/p>\n<pre class=\"brush: perl; code\">\n# \u672c\u6765\u306f \/etc\/gitweb.conf \u4ee5\u5916\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u3001\n# \/etc\/gitweb.conf \u304c\u3042\u308c\u3070\u305d\u308c\u3092\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306b\u3059\u308b\u307f\u305f\u3044\u3060\u3051\u3069\u3001\n# \u9762\u5012\u306a\u306e\u3067 \/etc\/gitweb.conf \u3092\u76f4\u63a5\u4f7f\u3046\u3088\u3046\u306b\u3059\u308b\u3002\n# \u3053\u306e\u884c\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3057\u306a\u3044\u3068\u3001\u7121\u9650\u30eb\u30fc\u30d7\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\u3002\n#do &quot;\/etc\/gitweb.conf&quot; if -e &quot;\/etc\/gitweb.conf&quot;;\n# gitosis\u306b\u3088\u3063\u3066\u4f5c\u3089\u308c\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u4e00\u89a7\u30d5\u30a1\u30a4\u30eb\n# \u3053\u308c\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u3068\u3001\u4e00\u89a7\u306f\u8868\u793a\u3055\u308c\u306a\u3044\u3002\n#\uff08\u3051\u3069\u3001\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u76f4\u63a5\u6307\u5b9a\u3055\u308c\u308b\u3068\u898b\u3048\u308b\uff09\n#$projects_list = &quot;\/srv\/example.com\/git\/gitosis\/projects.list&quot;;\n# \u30ec\u30dd\u30b8\u30c8\u30ea\u304c\u7f6e\u3044\u3066\u3042\u308b\u5834\u6240\n# \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306fApache\u304c\u8aad\u307f\u8fbc\u3081\u308b\u6a29\u9650\u304c\u7740\u3044\u3066\u306a\u3044\u3068\u30c0\u30e1\u3002\n$projectroot = &quot;\/srv\/example.com\/git\/repositories&quot;;\n# \u3053\u306e\u884c\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001git-daemon\u304canonymous\u3067\u65e2\u306b\u516c\u958b\u3057\u3066\u3044\u308b\u30ec\u30dd\u30b8\u30c8\u30ea\u306e\u307f\n# gitweb\u304b\u3089\u95b2\u89a7\u53ef\u80fd\u3002\n#$export_ok = &quot;git-daemon-export-ok&quot;;\n# \u3053\u3061\u3089\u306b\u3059\u308b\u3068\u5168\u3066\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u95b2\u89a7\u53ef\u80fd\u3002\n$export_ok = &quot;&quot;;\n# git\u306e\u30d9\u30fc\u30b9URL\n@git_base_url_list = ('git:\/\/example.com');<\/pre>\n<p>Apache\u306e\u8a2d\u5b9a\u3002\u74b0\u5883\u306b\u3088\u3063\u3066\uff08VirtualHost\u3068\u304b\uff09\u9055\u3046\u3068\u601d\u3046\u306e\u3067\u3001\u9069\u5b9c\u8aad\u307f\u66ff\u3048\u3066\u3002<\/p>\n<pre class=\"brush: plain; code\">\nSetEnv GITWEB_CONFIG \/etc\/gitweb.conf\n&lt;Directory \/var\/www\/git&gt;\nOptions ExecCGI FollowSymLinks Indexes\nAllow from all\nOrder allow,deny\nAddHandler cgi-script cgi\nDirectoryIndex gitweb.cgi\n&lt;\/Directory&gt;\n<\/pre>\n<p>\u3053\u308c\u3067 http:\/\/example.com\/git\/ \u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<h3>\u25a0\u53c2\u8003\u306b\u3057\u305f\u30b5\u30a4\u30c8<\/h3>\n<ul>\n<li>&nbsp;<a href=\"http:\/\/www.jedi.be\/blog\/2009\/05\/06\/8-ways-to-share-your-git-repository\/#apachehttpgitweb\" target=\"_blank\">\u3053\u308c<\/a>\u3001\u82f1\u8a9e\u3060\u3051\u3069\u305d\u308c\u4ee5\u5916\u306b\u3082\u5206\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3057\u3066\u3042\u308b\u3002<\/li>\n<li><a href=\"http:\/\/d.hatena.ne.jp\/kou_i\/20091129\/1259498536\" target=\"_blank\">CentOS\u306bgitosis\u5165\u308c\u3066gitweb\u304b\u3089\u3082\u53c2\u7167\u51fa\u6765\u308b\u3088\u3046\u306b<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5gitosis\u3068\u3044\u3046git\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u3059\u308b\u305f\u3081\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u95a2\u3059\u308b\u30a8\u30f3\u30c8\u30ea\u3092\u66f8\u3044\u305f\u304c\u3001\u4eca\u56de\u306fgitweb\u3068\u3044\u3046\u3001web\u304b\u3089\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u95b2\u89a7\u3059\u308b\u30c4\u30fc\u30eb\u306b\u3064\u3044\u3066\u66f8\u304f\u3002 \u25a0\u74b0\u5883 CentOS 5.5 Apach&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[15],"tags":[659,269,853,862],"class_list":["post-1002","post","type-post","status-publish","format-standard","hentry","category-15","tag-apache","tag-centos","tag-gitosis","tag-gitweb"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=1002"}],"version-history":[{"count":0,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1002\/revisions"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=1002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=1002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=1002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}