{"id":3175,"date":"2019-10-27T20:01:25","date_gmt":"2019-10-27T11:01:25","guid":{"rendered":"https:\/\/www.cotegg.com\/blog\/?p=3175"},"modified":"2019-10-27T20:01:25","modified_gmt":"2019-10-27T11:01:25","slug":"3175","status":"publish","type":"post","link":"https:\/\/www.cotegg.com\/blog\/?p=3175","title":{"rendered":""},"content":{"rendered":"<p>\u3069\u3046\u3082\u4e2d\u7530\u3067\u3059\u3002<\/p>\n<p>Rails5.2\u304b\u3089 <code>config\/credentials.yml.enc<\/code> \u3084 <code>config\/master.key<\/code> \u304c\u8ffd\u52a0\u3055\u308c\u3066\u307e\u3059\u304c\u3001<br \/>\n\u3053\u308c\u3061\u3083\u3093\u3068\u4f7f\u3044\u307e\u3057\u3087\u3046\u306d\u3068\u3044\u3046\u8a71<\/p>\n<p><a href=\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/10\/a358cfbddde908842f562607b1d4e81b.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/10\/a358cfbddde908842f562607b1d4e81b-300x300.png\" alt=\"\" width=\"300\" height=\"300\" class=\"alignnone size-medium wp-image-3179\" srcset=\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/10\/a358cfbddde908842f562607b1d4e81b-300x300.png 300w, https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/10\/a358cfbddde908842f562607b1d4e81b-150x150.png 150w, https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/10\/a358cfbddde908842f562607b1d4e81b-100x100.png 100w, https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/10\/a358cfbddde908842f562607b1d4e81b.png 604w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u308c\u3089\u7c21\u5358\u306b\u8a00\u3046\u3068\u3001\u63a5\u7d9a\u60c5\u5831\u3068\u304b\u5927\u4e8b\u306a\u60c5\u5831\u3092\u6697\u53f7\u5316\u3057\u3066\u3001git\u3067\u7ba1\u7406\u3067\u304d\u308b\u3088\u3046\u306b\u3067\u304d\u308b\u3082\u3093\u3067\u3059\u3002<br \/>\n(\u63a5\u7d9a\u60c5\u5831\u3068\u304bgit\u3067\u7ba1\u7406\u3059\u3079\u304d\u3082\u3093\u3058\u3083\u306a\u3044\u3067\u3059\u3082\u3093\u306d)<\/p>\n<h3>\u30d5\u30a1\u30a4\u30eb\u306e\u8aac\u660e<\/h3>\n<blockquote><p>\n  config\/master.key: \u6697\u53f7\u5316\u3059\u308b\u305f\u3081\u306e\u9375 (git\u7ba1\u7406\u5bfe\u8c61\u5916)<br \/>\n  config\/credentials.yml.enc: \u60c5\u5831\u3092\u6697\u53f7\u5316\u3057\u305f\u30d5\u30a1\u30a4\u30eb\n<\/p><\/blockquote>\n<h3>config\/credentials.yml.enc\u3092\u7de8\u96c6\u3057\u305f\u3044\uff01<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nEDITOR=vim bin\/rails credentials:edit\n<\/pre>\n<p>\u305d\u3046\u3084\u3063\u3066\u7de8\u96c6\u3057\u305f\u308a\u2193\u3053\u3093\u306a\u611f\u3058\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u306a\u308b\u304b\u3082\u3067\u3059\u306d<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsecret_key_base: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\naws:\n  access_key_id: xxxxxxxxxxxxxxx\n  secret_access_key: xxxxxxxxxxxxxxxxxxxxxxxxxx\n<\/pre>\n<h3>config\/credentials.yml.enc\u3092\u53c2\u7167\u3057\u305f\u3044\uff01<\/h3>\n<p>\u4e0a\u8a18\u3067access_key_id\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u53c2\u7167\u3057\u305f\u3044\u5834\u5408\u306f\u3053\u308c\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nRails.application.credentials.dig(:aws, :access_key_id)\n<\/pre>\n<h3>\u3058\u3083\u3042\u672c\u756a\u3069\u3046\u3059\u3093\u306e\u554f\u984c<\/h3>\n<p>\u4e00\u822c\u7684\u306b\u672c\u756a\u74b0\u5883\u306b\u306f\u3001git\u7ba1\u7406\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u3057\u304b\u30c7\u30d7\u30ed\u30a4\u3057\u306a\u3044\u3002<\/p>\n<p>master.key\u306fgit\u7ba1\u7406\u5bfe\u8c61\u5916\u306a\u306e\u3067\u3001\u60c5\u5831\u8907\u5408\u5316\u3067\u304d\u306a\u3044\u3058\u3083\u3093\uff01<br \/>\n\u305d\u3093\u306a\u6642\u306e\u305f\u3081\u306b\u2193\u3053\u306e\u74b0\u5883\u5909\u6570\u3067master.key\u306e\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u3051\u3070\u5927\u4e08\u592b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexport RAILS_MASTER_KEY=xxxxxxxxxxxxxxxxxxxxx\n<\/pre>\n<blockquote><p>\n  <code>xxxxxxxxxxxxxxxxxxxxx<\/code> \u306f <code>cat config\/master.key<\/code> \u306e\u5024\u3067\u3059\n<\/p><\/blockquote>\n<p>\u4eca\u65e5\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3069\u3046\u3082\u4e2d\u7530\u3067\u3059\u3002 Rails5.2\u304b\u3089 config\/credentials.y &#8230; <\/p>\n","protected":false},"author":2,"featured_media":3179,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[7],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>| \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cotegg.com\/blog\/?p=3175\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"| \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"og:description\" content=\"\u3069\u3046\u3082\u4e2d\u7530\u3067\u3059\u3002 Rails5.2\u304b\u3089 config\/credentials.y ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cotegg.com\/blog\/?p=3175\" \/>\n<meta property=\"og:site_name\" content=\"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/COTegg.japan\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-10-27T11:01:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/10\/a358cfbddde908842f562607b1d4e81b.png\" \/>\n\t<meta property=\"og:image:width\" content=\"604\" \/>\n\t<meta property=\"og:image:height\" content=\"602\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u4e2d\u7530 \u6b69\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:site\" content=\"@cotegg_japan\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u4e2d\u7530 \u6b69\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=3175#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=3175\"},\"author\":{\"name\":\"\u4e2d\u7530 \u6b69\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/bee6afc3e5cc03652345976570794aef\"},\"headline\":\"\u30bf\u30a4\u30c8\u30eb\u306a\u3057\",\"datePublished\":\"2019-10-27T11:01:25+00:00\",\"dateModified\":\"2019-10-27T11:01:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=3175\"},\"wordCount\":76,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"articleSection\":[\"\u6280\u8853\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=3175#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/?p=3175\",\"url\":\"https:\/\/www.cotegg.com\/blog\/?p=3175\",\"name\":\"| \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4\",\"isPartOf\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\"},\"datePublished\":\"2019-10-27T11:01:25+00:00\",\"dateModified\":\"2019-10-27T11:01:25+00:00\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cotegg.com\/blog\/?p=3175\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#website\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"name\":\"COTegg\u306e\u30d0\u30b1\u30c4\",\"description\":\"- Bucket of cotegg -\",\"publisher\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#organization\",\"name\":\"COTegg Inc.\",\"url\":\"https:\/\/www.cotegg.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"contentUrl\":\"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png\",\"width\":176,\"height\":60,\"caption\":\"COTegg Inc.\"},\"image\":{\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/COTegg.japan\/\",\"https:\/\/twitter.com\/cotegg_japan\",\"https:\/\/www.instagram.com\/cotegg_japan\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/bee6afc3e5cc03652345976570794aef\",\"name\":\"\u4e2d\u7530 \u6b69\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ce4d0b00ef87081854562ad73f762659?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ce4d0b00ef87081854562ad73f762659?s=96&d=mm&r=g\",\"caption\":\"\u4e2d\u7530 \u6b69\"},\"sameAs\":[\"http:\/\/www.cotegg.com\"],\"url\":\"https:\/\/www.cotegg.com\/blog\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"| \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.cotegg.com\/blog\/?p=3175","og_locale":"ja_JP","og_type":"article","og_title":"| \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","og_description":"\u3069\u3046\u3082\u4e2d\u7530\u3067\u3059\u3002 Rails5.2\u304b\u3089 config\/credentials.y ...","og_url":"https:\/\/www.cotegg.com\/blog\/?p=3175","og_site_name":"\u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","article_publisher":"https:\/\/www.facebook.com\/COTegg.japan\/","article_published_time":"2019-10-27T11:01:25+00:00","og_image":[{"width":604,"height":602,"url":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2019\/10\/a358cfbddde908842f562607b1d4e81b.png","type":"image\/png"}],"author":"\u4e2d\u7530 \u6b69","twitter_card":"summary_large_image","twitter_creator":"@cotegg_japan","twitter_site":"@cotegg_japan","twitter_misc":{"\u57f7\u7b46\u8005":"\u4e2d\u7530 \u6b69"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cotegg.com\/blog\/?p=3175#article","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=3175"},"author":{"name":"\u4e2d\u7530 \u6b69","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/bee6afc3e5cc03652345976570794aef"},"headline":"\u30bf\u30a4\u30c8\u30eb\u306a\u3057","datePublished":"2019-10-27T11:01:25+00:00","dateModified":"2019-10-27T11:01:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cotegg.com\/blog\/?p=3175"},"wordCount":76,"commentCount":0,"publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"articleSection":["\u6280\u8853"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.cotegg.com\/blog\/?p=3175#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.cotegg.com\/blog\/?p=3175","url":"https:\/\/www.cotegg.com\/blog\/?p=3175","name":"| \u30b3\u30fc\u30c6\u30c3\u30b0\u306e\u30d0\u30b1\u30c4","isPartOf":{"@id":"https:\/\/www.cotegg.com\/blog\/#website"},"datePublished":"2019-10-27T11:01:25+00:00","dateModified":"2019-10-27T11:01:25+00:00","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cotegg.com\/blog\/?p=3175"]}]},{"@type":"WebSite","@id":"https:\/\/www.cotegg.com\/blog\/#website","url":"https:\/\/www.cotegg.com\/blog\/","name":"COTegg\u306e\u30d0\u30b1\u30c4","description":"- Bucket of cotegg -","publisher":{"@id":"https:\/\/www.cotegg.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cotegg.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.cotegg.com\/blog\/#organization","name":"COTegg Inc.","url":"https:\/\/www.cotegg.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","contentUrl":"https:\/\/www.cotegg.com\/blog\/wp-content\/uploads\/2015\/07\/logo_color1_yoko-e1436354651882.png","width":176,"height":60,"caption":"COTegg Inc."},"image":{"@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/COTegg.japan\/","https:\/\/twitter.com\/cotegg_japan","https:\/\/www.instagram.com\/cotegg_japan\/"]},{"@type":"Person","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/bee6afc3e5cc03652345976570794aef","name":"\u4e2d\u7530 \u6b69","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.cotegg.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ce4d0b00ef87081854562ad73f762659?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ce4d0b00ef87081854562ad73f762659?s=96&d=mm&r=g","caption":"\u4e2d\u7530 \u6b69"},"sameAs":["http:\/\/www.cotegg.com"],"url":"https:\/\/www.cotegg.com\/blog\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3175"}],"collection":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3175"}],"version-history":[{"count":4,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3175\/revisions"}],"predecessor-version":[{"id":3180,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3175\/revisions\/3180"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/3179"}],"wp:attachment":[{"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cotegg.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}