{"id":6078,"date":"2020-10-25T09:45:07","date_gmt":"2020-10-25T00:45:07","guid":{"rendered":"https:\/\/yumishin.com\/?p=6078"},"modified":"2020-10-25T09:45:07","modified_gmt":"2020-10-25T00:45:07","slug":"rails-docker","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=6078","title":{"rendered":"\u3010Rails6\u30fbDocker\u3011\u30bd\u30fc\u30b9\u5909\u66f4\u5f8c\u306b\u30da\u30fc\u30b8\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u3082veiw\u304c\u66f4\u65b0\u3055\u308c\u306a\u3044\u6642\u306e\u5bfe\u51e6\u6cd5"},"content":{"rendered":"<p>\u3069\u3046\u3082\u3001Docker\u74b0\u5883\u306eRails6\u306e\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3057\u3066\u3044\u305f\u969b\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u4eca\u307e\u3067\u30da\u30fc\u30b8\u3092\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3060\u3051\u3067\u3001view\u306b\u8a18\u8ff0\u3057\u3066\u3044\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u7a81\u7136\u53cd\u6620\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u4eca\u56de\u306f\u30da\u30fc\u30b8\u3092\u30ea\u30ed\u30fc\u30c9\u3059\u308c\u3070\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<h2 id=\"i-0\">\u3010Rails6\u30fbDocker\u3011\u30bd\u30fc\u30b9\u5909\u66f4\u5f8c\u306b\u30da\u30fc\u30b8\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u3082veiw\u304c\u66f4\u65b0\u3055\u308c\u306a\u3044\u6642\u306e\u5bfe\u51e6\u6cd5<\/h2>\n<h3 id=\"i-1\">\u7d50\u8ad6<\/h3>\n<p>Rails\u30a2\u30d7\u30ea\u5185\u306e<span class=\"haiiro\">config\/environment\/development.rb<\/span>\u306e\u6700\u5f8c\u306e\u65b9\u306b\u3042\u308b<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> development.rb<\/span><\/p>\n<pre><code>config.file_watcher = ActiveSupport::EventedFileUpdateChecker<\/code><\/pre>\n<\/div>\n<p>\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<div class=\"pre_tag\"><span><i class=\"fa fa-code\"><\/i> development.rb<\/span><\/p>\n<pre><code>config.file_watcher = ActiveSupport::FileUpdateChecker #=&gt;Evented\u306e\u8a18\u8ff0\u3092\u6d88\u3059\uff01<\/code><\/pre>\n<\/div>\n<h3 id=\"i-2\">\u3061\u3087\u3063\u3068\u3057\u305f\u8aac\u660e<\/h3>\n<p>\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u3092\u611f\u77e5\u3057\u3066\u3044\u308b\u306e\u304cfile_watcher\u3068\u3044\u3046\u90e8\u5206\u3067\u3059\u3002Docker\u306b\u3088\u308b\u74b0\u5883\u69cb\u7bc9\u3067\u306fvolume\u3067\u5171\u6709\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u30db\u30b9\u30c8\u5074\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4eee\u60f3\u74b0\u5883\u306b\u30de\u30a6\u30f3\u30c8\u3057\u3066\u304a\u308a\u3001\u3053\u306e\u65b9\u5f0f\u3060\u3068\u5909\u66f4\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3057\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>development.rb\u306e\u8a18\u8ff0\u5909\u66f4\u306b\u3088\u3063\u3066\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u66f4\u65b0\u3092\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5\u4e2d\u306b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u6a5f\u80fd\u306b\u5909\u66f4\u3067\u304d\u308b\u306e\u3067\u3001\u3053\u308c\u3067view\u306f\u3082\u3061\u308d\u3093controller\u3084model\u3068\u3044\u3063\u305f\u6a5f\u80fd\u306e\u5909\u66f4\u3082\u3001\u30da\u30fc\u30b8\u306e\u30ea\u30ed\u30fc\u30c9\u3067\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u3001Docker\u74b0\u5883\u306eRails6\u306e\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3057\u3066\u3044\u305f\u969b\u306e\u3053\u3068\u3067\u3059\u3002 \u4eca\u307e\u3067\u30da\u30fc\u30b8\u3092\u30ea\u30ed\u30fc\u30c9\u3059\u308b\u3060\u3051\u3067\u3001view\u306b\u8a18\u8ff0\u3057\u3066\u3044\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u5909\u66f4\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u7a81\u7136\u53cd\u6620\u3055\u308c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 \u305d\u3053\u3067\u4eca &#8230; <\/p>\n","protected":false},"author":1,"featured_media":6081,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272],"tags":[],"class_list":{"0":"post-6078","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-programing","8":"entry"},"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/6078","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6078"}],"version-history":[{"count":2,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/6078\/revisions"}],"predecessor-version":[{"id":6082,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/6078\/revisions\/6082"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/6081"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}