{"id":9582,"date":"2020-03-08T17:51:46","date_gmt":"2020-03-08T08:51:46","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=9582"},"modified":"2023-05-27T19:04:23","modified_gmt":"2023-05-27T10:04:23","slug":"%e3%80%90gitlab%e3%80%91%e7%ae%a1%e7%90%86%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=9582","title":{"rendered":"\u3010GitLab\u3011\u7ba1\u7406\u30b3\u30de\u30f3\u30c9"},"content":{"rendered":"<p>GitLab\u306e\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u306f\u4e0b\u8a18\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/opt\/gitlab\/bin<\/pre>\n<p>GitLab\u306e\u904b\u7528\u7ba1\u7406\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>gitlab-ctl<\/li>\n<li>gitlab-psql<\/li>\n<li>gitlab-rake<\/li>\n<\/ul>\n<h2>gitlab-ctl<\/h2>\n<h3>\u4ee3\u8868\u7684\u306a\u6a5f\u80fd\u4e00\u89a7<\/h3>\n<ul>\n<li>GitLab\u306e\u30d7\u30ed\u30bb\u30b9\u7ba1\u7406<\/li>\n<li>GitLab\u306e\u8a2d\u5b9a\u518d\u69cb\u6210<\/li>\n<li>\u30ed\u30b0\u306e\u78ba\u8a8d<\/li>\n<\/ul>\n<h3>GitLab\u306e\u30d7\u30ed\u30bb\u30b9\u7ba1\u7406<\/h3>\n<p>Unicorn\u4e0a\u306eGitLab Rails\u3001Nginx\u3001PostgreSQL\u7b49\u306f\u305d\u308c\u305e\u308c\u6b63\u3057\u3044\u9806\u756a\u3067\u30d7\u30ed\u30bb\u30b9\u3092\u505c\u6b62\u3057\u305f\u308a\u8d77\u52d5\u3057\u305f\u308a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308c\u3070\u305d\u306e<span style=\"color: #ff0000;\"><strong>\u30d7\u30ed\u30bb\u30b9\u306e\u8d77\u52d5\u9806\u7b49\u3092\u904b\u7528\u8005\u304c\u610f\u8b58\u3059\u308b\u5fc5\u8981\u304c\u306a\u304fGitLab\u30d7\u30ed\u30bb\u30b9\u306e\u8d77\u52d5\u3084\u505c\u6b62\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>\u307e\u305f\u3001\u5404\u30b3\u30de\u30f3\u30c9\u306f\u305d\u308c\u3089\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3092\u5305\u62ec\u3057\u3066\u4e00\u62ec\u3067\u64cd\u4f5c\u3059\u308b\u306e\u304c\u57fa\u672c\u3067\u3059\u304c\u3001\u30b3\u30de\u30f3\u30c9\u306e\u5f8c\u308d\u306b\u30d7\u30ed\u30bb\u30b9\u540d(nginx\u7b49\uff09\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306b\u64cd\u4f5c\u3092\u3059\u308b\u4e8b\u3082\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h4>GitLab\u306e\u8d77\u52d5<\/h4>\n<pre class=\"lang:default decode:true\">gitlab-ctl start<\/pre>\n<h4>GitLab\u306e\u505c\u6b62<\/h4>\n<pre class=\"lang:default decode:true\">gitlab-ctl stop<\/pre>\n<h4>GitLab\u306e\u518d\u8d77\u52d5<\/h4>\n<pre class=\"lang:default decode:true\">gitlab-ctl restart<\/pre>\n<h4>GitLab\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u78ba\u8a8d<\/h4>\n<p>GitLab\u306e\u8d77\u52d5\u505c\u6b62\u30b9\u30c6\u30fc\u30bf\u30b9\u7b49\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">gitlab-ctl status<\/pre>\n<h4>GitLab\u8a2d\u5b9a\u306e\u518d\u69cb\u6210<\/h4>\n<p>\u300c\/etc\/gitlab\/gitlab.rb\u300d\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3057\u305f\u3089\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u4e8b\u3067\u8a2d\u5b9a\u3092\u53cd\u6620\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">gitlab-ctl reconfigure<\/pre>\n<p>\u306a\u304a\u3001\u3059\u3067\u306b\u904b\u7528\u4e2d\u306eGitLab\u306e\u8a2d\u5b9a\u518d\u69cb\u6210\u306b\u95a2\u3057\u3066\u306fGitLab\u30b5\u30fc\u30d3\u30b9\u5168\u4f53\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u306e\u3067\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u72b6\u614b\u3067\u306e\u53cd\u6620\u3092\u3059\u308b\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h4>GitLab\u306e\u30ed\u30b0\u78ba\u8a8d<\/h4>\n<p>GitLab\u306e\u30ed\u30b0\u306f\u30d7\u30ed\u30bb\u30b9\u3054\u3068\u306b\u5206\u304b\u308c\u3066\u3044\u3066\u975e\u5e38\u306b\u78ba\u8a8d\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u3067\u3059\u304c\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001<span style=\"color: #ff0000;\"><strong>\u5168\u30d7\u30ed\u30bb\u30b9\u306e\u6700\u65b0\u30ed\u30b0\u3092\u6a19\u6e96\u51fa\u529b\u3067\u76e3\u8996\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<pre class=\"lang:default decode:true\">gitlab-ctl tail<\/pre>\n<h2>gitlab-psql<\/h2>\n<p>GitLab\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u95b2\u89a7\u3084\u5909\u66f4\u3092\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\u305f\u3060\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u66f4\u65b0\u51e6\u7406\u306f\u672c\u756a\u74b0\u5883\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u305f\u3081\u57fa\u672c\u7684\u306b\u306f<span style=\"color: #ff0000;\"><strong>\u672c\u756a\u7528\u30c7\u30fc\u30bf\u306e\u53c2\u7167\u76ee\u7684\u3067\u4f7f\u7528\u3059\u308b<\/strong><\/span>\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002\u306a\u304a\u3001\u3042\u304f\u307e\u3067\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u30ea\u30e2\u30fc\u30c8\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305fPostgreSQL\u306b\u3057\u304b\u4f7f\u7528\u3067\u304d\u305a\u3001\u30ea\u30e2\u30fc\u30c8\u306eDB\u306b\u306f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u7248\u306e\u307f\u3067\u3057\u304b\u5229\u7528\u3067\u304d\u305a\u3001\u30bd\u30fc\u30b9\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fGitLab\u3067\u306f\u5229\u7528\u3067\u304d\u306a\u3044\u306e\u3067\u305d\u306e\u70b9\u3082\u6ce8\u610f\u3067\u3059\u3002<\/p>\n<h2>gitlab-rake<\/h2>\n<p>Rake\u306f\u4e00\u822c\u7684\u306aRuby\u306e\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002GitLab\u3082Ruby\u3067\u3067\u304d\u3066\u3044\u308b\u306e\u3067\u5229\u7528\u3067\u304d\u3044\u304f\u3064\u304b\u983b\u7e41\u306b\u5229\u7528\u3055\u308c\u308b\u904b\u7528\u30bf\u30b9\u30af\uff08Rakefile)\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u304a\u308a\u3053\u306e\u30b3\u30de\u30f3\u30c9(gitlab-rake)\u3067\u5229\u7528\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<h3>\u7528\u9014<\/h3>\n<ul>\n<li>GitLab\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<\/li>\n<li>GitLab\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30ea\u30b9\u30c8\u30a2<\/li>\n<li>GitLab\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u78ba\u8a8d<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"GitLab\u306e\u7ba1\u7406\u30b3\u30de\u30f3\u30c9\u306f\u4e0b\u8a18\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u3002 \/opt\/gitlab\/bin GitLab\u306e\u904b\u7528\u7ba1\u7406\u3067\u3088\u304f\u4f7f\u308f\u308c\u308b\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002 gitlab-ctl gitlab-psql gitlab [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[98],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/9582"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9582"}],"version-history":[{"count":9,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/9582\/revisions"}],"predecessor-version":[{"id":20207,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/9582\/revisions\/20207"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9582"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}