{"id":659,"date":"2020-07-21T15:30:00","date_gmt":"2020-07-21T06:30:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2020\/07\/21\/ruby-on-jets-problem"},"modified":"2020-07-21T15:30:00","modified_gmt":"2020-07-21T06:30:00","slug":"ruby-on-jets-problem","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2020\/07\/21\/ruby-on-jets-problem\/","title":{"rendered":"Ruby on Jets\u3067\u30cf\u30de\u3063\u305f\u3053\u3068"},"content":{"rendered":"
\u571f\u5c45\u3067\u3059\u3002\u672c\u65e5\u306f\u306f\u3058\u3081\u3066Ruby on Jets\u3092\u5229\u7528\u3057\u3066\u3044\u3066\u3001\u30cf\u30de\u3063\u305f\u70b9\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n
<\/p>\n
Ruby\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002Ruby\u3067\u66f8\u304b\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092AWS Lambda\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3001Amazon API Gateway\u3067Lambda\u3078\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308bURL\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n
Ruby on Rails\u3068\u540c\u69d8\u306e\u8a18\u6cd5\u3067\u8a18\u8ff0\u3067\u304d\u3001\u5229\u7528\u3067\u304d\u308b\u30b3\u30de\u30f3\u30c9\u3082\u540c\u69d8\u306e\u7269\u304c\u591a\u3044\u306e\u3067\u3001\u7d4c\u9a13\u8005\u306f\u30b9\u30e0\u30fc\u30ba\u306b\u5229\u7528\u3067\u304d\u308b\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n
\u4e00\u65b9\u3001\u30cf\u30de\u3063\u305f\u70b9\u3082\u3042\u308a\u307e\u3057\u305f\u3002\u3068\u304f\u306b\u958b\u767a\u4e2d\u306b\u30ed\u30fc\u30ab\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u304a\u3044\u3066\u5b9f\u884c\u3057\u3066\u3044\u308b\u72b6\u614b\u3067\u306f\u610f\u56f3\u3057\u305f\u901a\u308a\u306b\u52d5\u3044\u3066\u3044\u305f\u306e\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u74b0\u5883\u3078\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3068\u52d5\u304b\u306a\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n
Lambda\u306b\u306f\u4e88\u7d04\u6e08\u307f\u74b0\u5883\u5909\u6570<\/a>\u304c\u3042\u308a\u3001\u305d\u308c\u306b\u542b\u307e\u308c\u308b\u5909\u6570\u3092\u3042\u3089\u304b\u3058\u3081CI\u5b9f\u884c\u6642\u306b\u6e21\u3059\u306a\u3069\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n AWS credentials\u306f~\/.aws\/credentials\u306b\u3042\u3089\u304b\u3058\u3081\u8a18\u8f09\u3057\u3066\u304a\u304f\u3053\u3068\u3067\u5bfe\u51e6\u3067\u304d\u307e\u3059\u3002<\/p>\n \u307e\u305f\u3001jets deploy\u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c\u6642\u306b\u540c\u6642\u306b\u6e21\u3057\u3066\u3082OK\u3067\u3059\u3002<\/p>\n \u3053\u306e\u3088\u3046\u306bconfig\/routes.rb\u306b\u30cd\u30b9\u30c8\u3057\u305f\u30ea\u30bd\u30fc\u30b9\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3068\u30ed\u30fc\u30ab\u30eb\u3067\u306f\u554f\u984c\u306a\u304f\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3055\u308c\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001 i18n\u304cJets\u3067\u306f\u52d5\u4f5c\u3057\u306a\u3044\u305f\u3081\u3001\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u5316\u3057\u305f\u304b\u3063\u305f\u6642\u306b\u3001errors.add\u3092\u7528\u3044\u3066\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u76f4\u63a5\u5909\u66f4\u3057\u3066\u3084\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u3044\u304f\u3064\u304b\u30cf\u30de\u3063\u305f\u70b9\u306f\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u307b\u307cRails\u306e\u611f\u899a\u3067\u66f8\u3051\u3001\u30b7\u30f3\u30d7\u30eb\u3067\u4f7f\u3044\u3084\u3059\u3044\u3068\u611f\u3058\u307e\u3057\u305f\u3002Rails\u3068\u7570\u306a\u308b\u70b9\u3092\u62bc\u3055\u3048\u3001\u3069\u306e\u3088\u3046\u306b\u4ee3\u66ff\u3067\u304d\u308b\u304b\u3092\u5b66\u3093\u3067\u6d3b\u7528\u3057\u3066\u3044\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n \u516c\u5f0f<\/a> \u571f\u5c45\u3067\u3059\u3002\u672c\u65e5\u306f\u306f\u3058\u3081\u3066Ruby on Jets\u3092\u5229\u7528\u3057\u3066\u3044\u3066\u3001\u30cf\u30de\u3063\u305f\u70b9\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 Ruby on Jets \u3068\u306f Ruby\u306e\u30b5\u30fc\u30d0\u30fc\u30ec\u30b9\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002Ruby\u3067\u66f8\u304b\u308c\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092AWS Lambda\u306b\u30c7\u30d7\u30ed\u30a4\u3057\u3001Amazon API Gateway\u3067Lambda\u3078\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3059\u308bURL\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u751f\u6210\u3057\u307e\u3059\u3002 Ruby on Rails\u3068\u540c\u69d8\u306e\u8a18\u6cd5\u3067\u8a18\u8ff0\u3067\u304d\u3001\u5229 […]<\/p>\n","protected":false},"author":11,"featured_media":684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,17],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/659"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":0,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Building CloudFormation templates.\nYou have configured some environment variables that are reserved by AWS Lambda.\n\nAWS_ACCESS_KEY_ID\nAWS_REGION\nAWS_SECRET_ACCESS_KEY\n\nThe deployment to AWS Lambda will failed when using reserved variables.\nPlease remove these reserved variables.<\/code><\/pre>\n
[default]\naws_access_key_id=AKIAIOSFODNN7EXAMPLE\naws_secret_access_key=wJalrXUtnFEMI\/K7MDENG\/bPxRfiCYEXAMPLEKEY<\/code><\/pre>\n
\u30ea\u30bd\u30fc\u30b9\u306e\u30cd\u30b9\u30c8<\/h1>\n
Jets.application.routes.draw do\n resources :customers do\n resources :projects do\n resources :billings do\n end\n end\n end<\/code><\/pre>\n
\n\u30c7\u30d7\u30ed\u30a4\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u4e09\u968e\u5c64\u76ee\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u751f\u6210\u3067\u5931\u6557\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002\u4e8c\u968e\u5c64\u76ee\u307e\u3067\u3067\u306a\u3044\u3068\u3001API Gateway\u306e\u751f\u6210\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u4e09\u968e\u5c64\u76ee\u306f\u30cd\u30b9\u30c8\u305b\u305a\u306b\u3001\u76f4\u63a5\u8a18\u8ff0\u3059\u308b\u3053\u3068\u3067\u5bfe\u51e6\u3057\u307e\u3057\u305f\u3002<\/p>\nRails\u306b\u3042\u3063\u3066Jets\u3067\u306f\u52d5\u4f5c\u3057\u306a\u3044\u6a5f\u80fd<\/h1>\n
\n\u4ed6\u306b\u3082\u3001rails-ujs\u306e\u6a5f\u80fd\uff08view\u306edata-method\u306a\u3069\uff09\u304c\u30c7\u30d7\u30ed\u30a4\u74b0\u5883\u3067\u306f\u52b9\u3044\u3066\u3044\u306a\u3044\u3088\u3046\u3067\u3057\u305f\u3002<\/p>\n\u307e\u3068\u3081<\/h1>\n
\u53c2\u8003<\/h1>\n
\nGitHub<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"