{"id":640,"date":"2013-01-17T22:31:25","date_gmt":"2013-01-17T13:31:25","guid":{"rendered":"http:\/\/ani2life.com\/wp\/?p=640"},"modified":"2013-01-17T22:32:14","modified_gmt":"2013-01-17T13:32:14","slug":"%eb%a0%88%eb%93%9c%eb%a7%88%ec%9d%b8redmine-2-2-0-attachments_storage_path-%eb%ac%b8%ec%a0%9c","status":"publish","type":"post","link":"https:\/\/ani2life.com\/wp\/?p=640","title":{"rendered":"\ub808\ub4dc\ub9c8\uc778(Redmine) 2.2.0 attachments_storage_path \ubb38\uc81c"},"content":{"rendered":"<p>Ubuntu 12.04 + Ruby 1.8.7 + Rails 3.2 \ud658\uacbd\uc5d0\uc11c Redmine 2.2.0 \uc744 \uc124\uce58\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ub808\ub4dc\ub9c8\uc778\uc758 \ud658\uacbd\uc124\uc815 \ud30c\uc77c\uc778 configuration.yml \uc744 \uc5f4\uc5b4\uc11c attachments_storage_path \uc5d0 \ucca8\ubd80\ud30c\uc77c\uc774 \uc800\uc7a5\ub420 \uacbd\ub85c\ub97c \ub123\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"padding-left: 30px;\">attachments_storage_path: \/\ucca8\ubd80\ud30c\uc77c_\uc800\uc7a5_\uacbd\ub85c<\/p>\n<p>\uadf8\ub9ac\uace0 \ub808\ub4dc\ub9c8\uc778\uc744 \uc7ac\uc2dc\uc791 \ud588\uc9c0\ub9cc attachments_storage_path \uc5d0 \uc124\uc815\ud55c \uac12\uc774 \uc801\uc6a9\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ub808\ub4dc\ub9c8\uc778 \uc18c\uc2a4\ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\ub2c8 {Redmine}\/app\/models\/attachment.rb \ud30c\uc77c\uc5d0\uc11c attachments_storage_path \ub97c \ubd80\ub974\ub294 \ucf54\ub4dc\uc5d0 \uc5f0\uc0b0\uc790 \uc6b0\uc120\uc21c\uc704 \uad00\ub828\ud55c \ubc84\uadf8\uac00 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n<p style=\"padding-left: 30px;\"><strong># \uc6d0\ubcf8 \ucf54\ub4dc<br \/>\n<\/strong>@@storage_path = Redmine::Configuration[&#8216;attachments_storage_path&#8217;] || ENV[&#8216;RAILS_VAR&#8217;] ? File.join(ENV[&#8216;RAILS_VAR&#8217;], &#8220;files&#8221;) : File.join(Rails.root, &#8220;files&#8221;)<\/p>\n<p style=\"padding-left: 30px;\"><strong># \uc218\uc815 \ucf54\ub4dc<br \/>\n<\/strong>@@storage_path = Redmine::Configuration[&#8216;attachments_storage_path&#8217;] || <span style=\"color: #ff0000;\">(<\/span>ENV[&#8216;RAILS_VAR&#8217;] ? File.join(ENV[&#8216;RAILS_VAR&#8217;], &#8220;files&#8221;) : File.join(Rails.root, &#8220;files&#8221;)<span style=\"color: #ff0000;\">)<\/span><\/p>\n<p>\uc774\ub807\uac8c \uad04\ud638\ub97c \uc50c\uc6cc\uc8fc\ub2c8\uae4c \uc815\uc0c1\uc801\uc73c\ub85c \ub3d9\uc791\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc544\ub9c8 \ub8e8\ube44 \ubc84\uc804\uc758 \ucc28\uc774\ub85c \uc704\uc758 \ucf54\ub4dc\uac00 \uc815\uc0c1\uc73c\ub85c \ub3cc\uc544\uac00\ub294 \ub8e8\ube44 \ubc84\uc804\uc774 \uc788\uc744 \uac83\uc774\ub77c\uace0 \uc0dd\uac01\ub429\ub2c8\ub2e4.<\/p>\n<p>\uc704\uc640 \uac19\uc740 \uc608\uc0c1\uce58 \ubabb\ud55c \ubc84\uadf8\uac00 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\ub3c4\ub85d \ud3c9\uc18c \ucf54\ub529\uc744 \ud560 \ub54c \uad04\ud638\ub85c \uc798 \ubb36\uc5b4\uc8fc\uba74 \uac00\ub3c5\uc131\ub3c4 \uc88b\uace0 \ubc84\uadf8\ub3c4 \uc608\ubc29\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 12.04 + Ruby 1.8.7 + Rails 3.2 \ud658\uacbd\uc5d0\uc11c Redmine 2.2.0 \uc744 \uc124\uce58\ud588\uc2b5\ub2c8\ub2e4. \ub808\ub4dc\ub9c8\uc778\uc758 \ud658\uacbd\uc124\uc815 \ud30c\uc77c\uc778 configuration.yml \uc744 \uc5f4\uc5b4\uc11c attachments_storage_path \uc5d0 \ucca8\ubd80\ud30c\uc77c\uc774 \uc800\uc7a5\ub420 \uacbd\ub85c\ub97c \ub123\uc5c8\uc2b5\ub2c8\ub2e4. attachments_storage_path: \/\ucca8\ubd80\ud30c\uc77c_\uc800\uc7a5_\uacbd\ub85c \uadf8\ub9ac\uace0 \ub808\ub4dc\ub9c8\uc778\uc744 \uc7ac\uc2dc\uc791 \ud588\uc9c0\ub9cc attachments_storage_path \uc5d0 \uc124\uc815\ud55c \uac12\uc774 \uc801\uc6a9\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4. \ub808\ub4dc\ub9c8\uc778 \uc18c\uc2a4\ucf54\ub4dc\ub97c \uc0b4\ud3b4\ubcf4\ub2c8 {Redmine}\/app\/models\/attachment.rb \ud30c\uc77c\uc5d0\uc11c attachments_storage_path \ub97c \ubd80\ub974\ub294 \ucf54\ub4dc\uc5d0 \uc5f0\uc0b0\uc790 \uc6b0\uc120\uc21c\uc704 \uad00\ub828\ud55c \ubc84\uadf8\uac00 \uc788\uc5c8\uc2b5\ub2c8\ub2e4. # \uc6d0\ubcf8 \ucf54\ub4dc @@storage_path [&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":[8],"tags":[295,291,294,289,290,293,292],"_links":{"self":[{"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/640"}],"collection":[{"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=640"}],"version-history":[{"count":3,"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/640\/revisions"}],"predecessor-version":[{"id":643,"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/640\/revisions\/643"}],"wp:attachment":[{"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ani2life.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}