{"id":1367,"date":"2023-03-19T10:25:03","date_gmt":"2023-03-19T02:25:03","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=1367"},"modified":"2023-04-28T21:17:19","modified_gmt":"2023-04-28T13:17:19","slug":"gitlab-large-version-upgrade-ideas","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/03\/19\/gitlab-large-version-upgrade-ideas\/","title":{"rendered":"Gitlab\u5927\u7248\u672c\u5347\u7ea7\u601d\u8def"},"content":{"rendered":"<p>\u53c2\u7167Gitlab\u5b98\u65b9\u5347\u7ea7\u64cd\u4f5c\u6587\u6863\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/blob\/master\/doc\/update\">https:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/blob\/master\/doc\/update<\/a><\/p>\n<p>\u4e3b\u8981\u7684\u601d\u8def\u548c\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p><!-- more --><\/p>\n<p>(1). \u5728\u65b0\u7684\u670d\u52a1\u5668\u4e0a\u5b89\u88c5Gitlab\u6307\u5b9a\u7248\u672c(\u53c2\u7167Gitlab\u7684\u5b89\u88c5\u6587\u6863\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/blob\/master\/doc\/install\/installation.md\">https:\/\/gitlab.com\/gitlab-org\/gitlab-ce\/blob\/master\/doc\/install\/installation.md<\/a>)<\/p>\n<p>(2). \u5c06\u65b0\u5b89\u88c5\u7684Gitlab\u6570\u636e\u5e93\u5220\u9664\uff0c\u5c06\u65e7\u7684Gitlab\u6570\u636e\u5e93\u8fc1\u79fb\u5230\u65b0\u7684Gitlab\u670d\u52a1\u5668\u4e0a<\/p>\n<p>(3). \u5c06\u65e7\u7684Gitlab\u7248\u672c\u5e93(repositories\u76ee\u5f55)\u590d\u5236\u5230\u65b0\u7684Gitlab\u670d\u52a1\u5668\u7684\u5bf9\u5e94\u4f4d\u7f6e<\/p>\n<p>(4). \u6267\u884cGitlab\u7684\u6570\u636e\u5e93\u5347\u7ea7\u64cd\u4f5c\u4ee5\u53ca\u9759\u6001\u8d44\u6e90\u7684\u7f16\u8bd1\u64cd\u4f5c<\/p>\n<pre><code># Run database migrations\nsudo -u git -H bundle exec rake db:migrate RAILS_ENV=production\n# Clean up assets and cache\nsudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production<\/code><\/pre>\n<p>(5). Gitlab\u5b89\u88c5\u548c\u5347\u7ea7\u6210\u529f\uff0c\u5207\u6362\u53cd\u5411\u4ee3\u7406\u5230\u65b0\u7684\u670d\u52a1\u5668\u5730\u5740<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u7167Gitlab\u5b98\u65b9\u5347\u7ea7\u64cd\u4f5c\u6587\u6863\uff1ahttps:\/\/gitlab.com\/gitlab-org\/gitlab-c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[230],"tags":[],"class_list":["post-1367","post","type-post","status-publish","format-standard","hentry","category-gitlab"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1367"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/1367\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}