{"id":1603,"date":"2023-06-14T20:51:56","date_gmt":"2023-06-14T11:51:56","guid":{"rendered":"https:\/\/blog.fourthgate.jp\/?p=1603"},"modified":"2023-07-08T11:08:10","modified_gmt":"2023-07-08T02:08:10","slug":"macos-ventura%e3%81%abredmine","status":"publish","type":"post","link":"https:\/\/blog.fourthgate.jp\/?p=1603","title":{"rendered":"macOS\u00a0Ventura\u306bredmine\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"<p>\u8272\u3005\u3068\u8003\u3048\u308b\u3068\u3053\u308d\u3042\u3063\u3066\u3001Linux\u3067\u904b\u7528\u3057\u3066\u3044\u305f\u8af8\u3005\u306e\u30b5\u30fc\u30d3\u30b9\u3092macOS\u306b\u79fb\u884c\u4e2d\u3067\u3059\u3002<br \/>\napache\u3084php\u306a\u3069\u306fhomebrew\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u304b\u306a\u308a\u3059\u3093\u306a\u308a\u79fb\u884c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u3044\u308d\u3044\u308d\u9762\u5012\u305d\u3046\u3060\u3068\u4e88\u60f3\u3057\u3066\u3044\u305f\u306e\u306f\u3001redmine\u3001gitbucket\u3001mpd\u306a\u3069\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4ee5\u4e0b\u3001\u50d5\u306e\u5834\u5408\u306eredmine\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u6d41\u308c\u3002<br \/>\n\u591a\u5206\u3082\u3063\u3068\u30b9\u30de\u30fc\u30c8\u306a\u65b9\u6cd5\u304c\u3042\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3002<\/p>\n<p>\u307e\u305a\u306f\u3001ruby \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre>brew install ruby@3.1<\/pre>\n<p>ruby \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u3001\u4f7f\u7528\u3059\u308b redmine \u306b\u5408\u308f\u305b\u307e\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093\u3001apache \u3068 mysql \u3082 brew \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306f\u3001\u30b7\u30a7\u30eb\u306e\u74b0\u5883\u5909\u6570\u3092 .zshrc \u306b\u8a18\u8ff0\u3002<\/p>\n<pre>export PATH=\"\/opt\/homebrew\/opt\/ruby@3.1\/bin:$PATH\"i\nexport LDFLAGS=\"-L\/opt\/homebrew\/opt\/ruby@3.1\/lib\"\nexport CPPFLAGS=\"-I\/opt\/homebrew\/opt\/ruby@3.1\/include\"\nexport PKG_CONFIG_PATH=\"\/opt\/homebrew\/opt\/ruby@3.1\/lib\/pkgconfig\"<\/pre>\n<p>\u3053\u308c\u3067\u3001\u30b7\u30a7\u30eb\u304b\u3089 ruby \u3068\u6253\u3064\u3068\u3001\/opt\/homebrew\/opt\/ruby \u304c\u53c2\u7167\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u4f5c\u6210\u3002<br \/>\nmysql\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u63a5\u7d9a\u30e6\u30fc\u30b6\u30fc\u3082\u4f5c\u6210\u3057\u3001config\/database.yml\u3082\u8a2d\u5b9a<\/p>\n<p>\u6b21\u306f\u3001bundler \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<pre>gem install bundler\nbundle install --without development test\nrake generate_secret_token<\/pre>\n<p>\u6700\u5f8c\u306f\u3001apache \u7528\u306e mod_passenger \u306e\u4f5c\u6210\u3002<br \/>\nruby \u306f\u8a73\u3057\u304f\u306a\u3044\u306e\u3067\u3059\u304c\u3001Ruby on Rails \u3092apache\u52d5\u304b\u3059\u305f\u3081\u306e\u3082\u306e\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<pre>ruby \/usr\/local\/bin\/passenger-install-apache2-module<\/pre>\n<p>\u3092\u5b9f\u884c\u3057\u3001mod_passenger.so \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nmod_passenger.so \u751f\u6210\u306e\u904e\u7a0b\u3067\u3001apache \u7528\u306e\u8a2d\u5b9a\u5185\u5bb9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3092 apache \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001<\/p>\n<pre>passenger-install-apache2-module<\/pre>\n<p>\u3068\u3060\u3051\u5b9f\u884c\u3059\u308b\u3068\u3001macOS \u306b\u30d7\u30ea\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b ruby \u304c\u52d5\u3044\u3066\u3057\u307e\u3044\u3046\u307e\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e0a\u8a18\u306e\u5185\u5bb9\u3067\u3001Linux\uff08 Ubuntu22.04 \uff09\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u305f redmine 5.0.3 \u3092 macOS \u306b\u79fb\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8272\u3005\u3068\u8003\u3048\u308b\u3068\u3053\u308d\u3042\u3063\u3066\u3001Linux\u3067\u904b\u7528\u3057\u3066\u3044\u305f\u8af8\u3005\u306e\u30b5\u30fc\u30d3\u30b9\u3092macOS\u306b\u79fb\u884c\u4e2d\u3067\u3059\u3002 apache\u3084php\u306a\u3069\u306fhomebrew\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u304b\u306a\u308a\u3059\u3093\u306a\u308a\u79fb\u884c\u3067\u304d\u307e\u3057\u305f\u3002 \u3044\u308d\u3044\u308d\u9762\u5012\u305d\u3046\u3060\u3068\u4e88\u60f3\u3057\u3066\u3044\u305f\u306e\u306f\u3001r &hellip; <a href=\"https:\/\/blog.fourthgate.jp\/?p=1603\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","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,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1603","post","type-post","status-publish","format-standard","hentry","category-4"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1603"}],"version-history":[{"count":5,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1603\/revisions"}],"predecessor-version":[{"id":1610,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=\/wp\/v2\/posts\/1603\/revisions\/1610"}],"wp:attachment":[{"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fourthgate.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}