{"id":367,"date":"2014-02-22T14:30:22","date_gmt":"2014-02-22T05:30:22","guid":{"rendered":"http:\/\/lovelinux.mydns.jp\/?p=367"},"modified":"2014-03-12T21:52:21","modified_gmt":"2014-03-12T12:52:21","slug":"gitlab%e3%83%90%e3%83%bc%e3%82%b8%e3%83%a7%e3%83%b3%e3%82%a2%e3%83%83%e3%83%97%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/lovelinux.mydns.jp\/?p=367","title":{"rendered":"GitLab\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u65b9\u6cd5"},"content":{"rendered":"<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u306eReadme\u3068\u304b\u8aad\u3080\u307b\u3046\u304c\u78ba\u5b9f\u3067\u3059\u304c\u3001\u9762\u5012\u306a\u306e\u3067\u3001\u9069\u5f53\u306b\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u3066\u3001\u6210\u529f\u3057\u305f\u306e\u3067\u305d\u306e\u65b9\u6cd5\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002\uff08\u9069\u5f53\u305d\u3046\u306b\u66f8\u3044\u3066\u307e\u3059\u304c\u3001\u4e00\u5fdcRails\u306f\u305d\u3053\u305d\u3053\u77e5\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u5927\u304d\u304f\u5916\u3057\u3066\u3044\u308b\u3053\u3068\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff09<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u3001\u65e2\u306bGitLab\u3092\u5c0e\u5165\u6e08\u307f\u3067\u3001\u305d\u306eGitLab\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u305f\u3044\u3068\u3044\u3046\u4eba\u5411\u3051\u306e\u8a18\u4e8b\u306a\u306e\u3067\u3001\u305d\u3082\u305d\u3082GitLab\u3059\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001<a href=\"http:\/\/lovelinux.mydns.jp\/?p=130\">\u3053\u306e\u8a18\u4e8b<\/a>\u3084<a href=\"http:\/\/lovelinux.mydns.jp\/?p=166\">\u3053\u306e\u8a18\u4e8b<\/a>\u3092\u53c2\u7167\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h4>\u73fe\u5728\u904b\u7528\u4e2d\u306egitlab\u30d5\u30a9\u30eb\u30c0\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304f<\/h4>\n<p>[bash]<br \/>\n$ mv gitlab gitlab.pre<br \/>\n[\/bash]<\/p>\n<p><\/p>\n<h4>\u6700\u65b0\u7248GitLab \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h4>\n<p><a href=\"https:\/\/github.com\/gitlabhq\/gitlabhq\/releases\">https:\/\/github.com\/gitlabhq\/gitlabhq\/releases<\/a><\/p>\n<p>\u3053\u3053\u304b\u3089\u6700\u65b0\u3063\u307d\u3044\u3082\u306e\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[bash]<br \/>\n# su &#8211; git<br \/>\n$ wget https:\/\/github.com\/gitlabhq\/gitlabhq\/archive\/v6.6.0.zip<br \/>\n[\/bash]<\/p>\n<p><\/p>\n<h4>\u6700\u65b0\u7248\u3092\u89e3\u51cd\u3057\u3001\u30d5\u30a9\u30eb\u30c0\u540d\u3092\u30ea\u30cd\u30fc\u30e0<\/h4>\n<p>[bash]<br \/>\n$ unzip v6.6.0<br \/>\n$ mv gitlabhq-6.6.0 gitlab<\/p>\n<p>[\/bash]<\/p>\n<p><\/p>\n<h4>\u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u65e7\u74b0\u5883\u304b\u3089\u30b3\u30d4\u30fc<\/h4>\n<p>[bash]<br \/>\n$ cd gitlab<br \/>\n$ cp ..\/gitlab.pre\/config\/database.yml config\/<br \/>\n$ cp ..\/gitlab.pre\/config\/gitlab.yml config\/<br \/>\n[\/bash]<\/p>\n<p>\u304b\u306a\u308a\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u653e\u7f6e\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u3001gitlab.yml\u306e\u5f62\u5f0f\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001config\/gitlab.yml.example\u3092\u30d9\u30fc\u30b9\u306b\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><\/p>\n<h4>\u4e0d\u8db3\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<\/h4>\n<p>[bash]<br \/>\n$ mkdir \/home\/git\/gitlab\/tmp\/pids<br \/>\n$ mkdir \/home\/git\/gitlab\/public\/uploads<br \/>\n[\/bash]<\/p>\n<p><\/p>\n<h4>\u30d0\u30f3\u30c9\u30eb\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u6c17\u9577\u306b\u5f85\u3061\u307e\u3057\u3087\u3046\uff01\uff09<\/h4>\n<p>[bash]<br \/>\n$ bundle install &#8211;deployment &#8211;without development test postgres<br \/>\n[\/bash]<\/p>\n<p><\/p>\n<h4>\u30a2\u30bb\u30c3\u30c8\u30d7\u30ea\u30b3\u30f3\u30d1\u30a4\u30eb\uff08\u305d\u3053\u305d\u3053\u5f85\u3061\u307e\u3059\uff09<\/h4>\n<p>[bash]<br \/>\n$ rake assets:precompile RAILS_ENV=production<br \/>\n[\/bash]<\/p>\n<p><\/p>\n<h4>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3<\/h4>\n<p>[bash]<br \/>\n$ rake db:migrate RAILS_ENV=production<br \/>\n[\/bash]<\/p>\n<p>\u3053\u3093\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u308a\u3057\u307e\u3059\u304c\u3001\u591a\u5206\u6c17\u306b\u3057\u306a\u304f\u3066OK\u3067\u3059\u3002\uff08\u9069\u5f53\u30fb\u30fb\uff09<br \/>\nfatal: Not a git repository (or any of the parent directories): .git<\/p>\n<p><\/p>\n<h4>\u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5<\/h4>\n<p>[bash]<br \/>\n# service gitlab restart<br \/>\n# service httpd restart<br \/>\n[\/bash]<\/p>\n<p><\/p>\n<h4>\u52d5\u4f5c\u78ba\u8a8d\uff08\u5c11\u3057\u5f85\u3061\u307e\u3059\uff09<\/h4>\n<p>\u30d6\u30e9\u30a6\u30b6\u30fc\u3067gitlab\u306eURL\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/02\/gitlab-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/02\/gitlab-1.png\" alt=\"gitlab-1\" width=\"853\" height=\"523\" class=\"alignnone size-full wp-image-386\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/02\/gitlab-1.png 853w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/02\/gitlab-1-300x183.png 300w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2014\/02\/gitlab-1-531x326.png 531w\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u516c\u5f0f\u30b5\u30a4\u30c8\u306eReadme\u3068\u304b\u8aad\u3080\u307b\u3046\u304c\u78ba\u5b9f\u3067\u3059\u304c\u3001\u9762\u5012\u306a\u306e\u3067\u3001\u9069\u5f53\u306b\u30b3\u30de\u30f3\u30c9\u3092\u53e9\u3044\u3066\u3001\u6210\u529f\u3057\u305f\u306e\u3067\u305d\u306e\u65b9\u6cd5\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002\uff08\u9069\u5f53\u305d\u3046\u306b\u66f8\u3044\u3066\u307e\u3059\u304c\u3001\u4e00\u5fdcRails\u306f\u305d\u3053\u305d\u3053\u77e5\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u5927\u304d\u304f\u5916\u3057\u3066\u3044\u308b\u3053\u3068\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3002\uff09 \u3053\u306e\u8a18\u4e8b\u306f\u3001\u65e2\u306bGitLab\u3092\u5c0e\u5165\u6e08\u307f\u3067\u3001\u305d\u306eGitLab\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u305f\u3044\u3068\u3044\u3046\u4eba\u5411\u3051\u306e\u8a18\u4e8b\u306a\u306e\u3067\u3001\u305d\u3082\u305d\u3082GitLab\u3059\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u8a18\u4e8b\u3084\u3053\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002 \u73fe\u5728\u904b\u7528\u4e2d\u306egitlab\u30d5\u30a9\u30eb\u30c0\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304f [bash] $ mv gitlab gitlab.pre [\/bash] \u6700\u65b0\u7248GitLab \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9 https:\/\/github.com\/gitlabhq\/gitlabhq\/releases \u3053\u3053\u304b\u3089\u6700\u65b0\u3063\u307d\u3044\u3082\u306e\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002 [bash] # su &#8211; git $ wget https:\/\/github.com\/gitlabhq\/gitlabhq\/archive\/v6.6.0.zip [\/bash] \u6700\u65b0\u7248\u3092\u89e3\u51cd\u3057\u3001\u30d5\u30a9\u30eb\u30c0\u540d\u3092\u30ea\u30cd\u30fc\u30e0 [bash] $ unzip v6.6.0 $ mv gitlabhq-6.6.0 gitlab [\/bash] \u30b3\u30f3\u30d5\u30a3\u30b0\u30d5\u30a1\u30a4\u30eb\u3092\u65e7\u74b0\u5883\u304b\u3089\u30b3\u30d4\u30fc [bash] $ cd gitlab $ cp ..\/gitlab.pre\/config\/database.yml config\/ $ cp ..\/gitlab.pre\/config\/gitlab.yml config\/ [\/bash] \u304b\u306a\u308a\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u653e\u7f6e\u3057\u3066\u3044\u305f\u5834\u5408\u306f\u3001gitlab.yml\u306e\u5f62\u5f0f\u304c\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u30b1\u30fc\u30b9\u3082\u3042\u308a\u307e\u3059\u306e\u3067\u3001config\/gitlab.yml.example\u3092\u30d9\u30fc\u30b9\u306b\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u4e0d\u8db3\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210 [bash] $ mkdir \/home\/git\/gitlab\/tmp\/pids $ mkdir \/home\/git\/gitlab\/public\/uploads [\/bash] \u30d0\u30f3\u30c9\u30eb\u3000\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u6c17\u9577\u306b\u5f85\u3061\u307e\u3057\u3087\u3046\uff01\uff09 [bash] $ bundle install &#8211;deployment &#8211;without development test postgres [\/bash] \u30a2\u30bb\u30c3\u30c8\u30d7\u30ea\u30b3\u30f3\u30d1\u30a4\u30eb\uff08\u305d\u3053\u305d\u3053\u5f85\u3061\u307e\u3059\uff09 [bash] $ rake assets:precompile RAILS_ENV=production [\/bash] \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9 \u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3 [bash] $ rake db:migrate RAILS_ENV=production [\/bash] \u3053\u3093\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u305f\u308a\u3057\u307e\u3059\u304c\u3001\u591a\u5206\u6c17\u306b\u3057\u306a\u304f\u3066OK\u3067\u3059\u3002\uff08\u9069\u5f53\u30fb\u30fb\uff09 fatal: Not a git repository (or any of the parent directories): .git \u30b5\u30fc\u30d3\u30b9\u518d\u8d77\u52d5 [bash] # service gitlab restart # service httpd restart [\/bash] \u52d5\u4f5c\u78ba\u8a8d\uff08\u5c11\u3057\u5f85\u3061\u307e\u3059\uff09 \u30d6\u30e9\u30a6\u30b6\u30fc\u3067gitlab\u306eURL\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"author":1,"featured_media":391,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[12],"class_list":{"0":"post-367","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-4","8":"tag-gitlab"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=367"}],"version-history":[{"count":7,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions"}],"predecessor-version":[{"id":484,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/367\/revisions\/484"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/391"}],"wp:attachment":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}