{"id":1903,"date":"2024-11-03T01:22:15","date_gmt":"2024-11-02T16:22:15","guid":{"rendered":"https:\/\/kurushimizero.com\/wp2\/?p=1903"},"modified":"2024-11-03T03:30:59","modified_gmt":"2024-11-02T18:30:59","slug":"rails%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92heroku%e3%81%ab%e5%86%8d%e3%83%87%e3%83%97%e3%83%ad%e3%82%a4%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%ef%bc%88%e5%a4%b1%e6%95%97%e8%ab%87%ef%bc%89","status":"publish","type":"post","link":"https:\/\/kurushimizero.com\/wp2\/2024\/11\/03\/rails%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92heroku%e3%81%ab%e5%86%8d%e3%83%87%e3%83%97%e3%83%ad%e3%82%a4%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84%ef%bc%88%e5%a4%b1%e6%95%97%e8%ab%87%ef%bc%89\/","title":{"rendered":"Rails\u30a2\u30d7\u30ea\u3092Heroku\u306b\u518d\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u306a\u3044\uff08\u5931\u6557\u8ac7\uff09"},"content":{"rendered":"\n<p>\u4eca\u56de\u306f\u3001Heroku\u306b\u30c7\u30d7\u30ed\u30a4\u6e08\u306eRails\u30a2\u30d7\u30ea\uff08Rails\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff09\u3092\u518d\u30c7\u30d7\u30ed\u30a4\u3057\u3088\u3046\u3068\u3057\u3066\u308b\u3093\u3067\u3059\u3051\u3069\u3001\u8af8\u3005\u306e\u30a8\u30e9\u30fc\u3067\u518d\u30c7\u30d7\u30ed\u30a4\u3067\u304d\u306a\u3044\u30fb\u30fb\u3068\u3044\u3046\u5185\u5bb9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u7d4c\u7def\u3068\u3057\u3066\u306f\u3001Heroku\u306b\u30c7\u30d7\u30ed\u30a4\u6e08\u306eRails\u30a2\u30d7\u30ea\uff08Rails\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\uff09\u3092\u653e\u7f6e\u3057\u3066\u304a\u308a\u3001\u4e45\u3057\u3076\u308a\u306b\u8868\u793a\u3057\u3066\u898b\u305f\u3089\u3001\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u76f4\u305d\u3046\u3068\u3057\u3066\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u539f\u56e0\u306f\u3001\u4eca\u306e\u30b9\u30bf\u30c3\u30af\u304c\u5ec3\u6b62\u306b\u306a\u308b\u306e\u3067\u3001\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u308d\u30fb\u30fb\u3068\u306e\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"83\" src=\"https:\/\/kurushimizero.com\/wp2\/wp-content\/uploads\/2024\/11\/image-1024x83.png\" alt=\"\" class=\"wp-image-1905\" srcset=\"https:\/\/kurushimizero.com\/wp2\/wp-content\/uploads\/2024\/11\/image-1024x83.png 1024w, https:\/\/kurushimizero.com\/wp2\/wp-content\/uploads\/2024\/11\/image-300x24.png 300w, https:\/\/kurushimizero.com\/wp2\/wp-content\/uploads\/2024\/11\/image-768x62.png 768w, https:\/\/kurushimizero.com\/wp2\/wp-content\/uploads\/2024\/11\/image.png 1054w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u306a\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305aIDE\u3068\u3057\u3066\u3001AWS\u306eCloud Shell\u3067\uff08\u306a\u3093\u3067Cloud9\u306f\u5ec3\u6b62\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u304b\uff1f\uff09\u3001\u30c7\u30d7\u30ed\u30a4\u6e08\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5f15\u3063\u5f35\u3063\u3066\u304d\u3066\u3001\u7a7a\u306e\u30b3\u30df\u30c3\u30c8\u3092\u884c\u3044\u3001git push heroku master\u3067\u30c7\u30d7\u30ed\u30a4\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>The Ruby version you are trying to install does not exist on this stack&#8230;<\/p>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u308bRuby\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u3001\u3053\u306e\u30b9\u30bf\u30c3\u30af\u306b\u306f\u7121\u3044\u30fb\u30fb\u3068\u306e\u3053\u3068\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3067\u3001Ruby\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3001gemfile\u306b\u305d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306eruby\u3092\u8a18\u8f09\u3057\u305f\u306e\u3067\u3059\u304c\uff08ruby &#8220;3.2.2&#8221;\uff09\u3001bundle install\u3068bundle update\u3067\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>[cloudshell-user@ip-10-130-63-103 ogawas]$ bundle update<br>Fetching gem metadata from https:\/\/rubygems.org\/\u2026\u2026..<br>Resolving dependencies\u2026<br>Could not find compatible versions<\/p>\n\n\n\n<p>Because listen &gt;= 3.1.3, &lt; 3.2.0 depends on Ruby &gt;= 2.2.3, &lt; 3.A and Gemfile depends on listen = 3.1.5, Ruby &gt;= 2.2.3, &lt; 3.A is required.<br>So, because current Ruby version is = 3.2.2,<br>version solving has failed.<\/p>\n\n\n\n<p>\u306a\u306e\u3067\u3001gem listen 3.1.5\u21923.4.1\u306b\u5909\u66f4\u3057\u3001bundle update\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3002<br>An error occurred while installing rake (13.2.1), and Bundler cannot continue<\/p>\n\n\n\n<p>An error occurred while installing rake (13.2.1), and Bundler cannot continue.<\/p>\n\n\n\n<p>In Gemfile:<br>coffee-rails was resolved to 4.2.2, which depends on<br>railties was resolved to 5.1.6, which depends on<br>rake<\/p>\n\n\n\n<p>\u306a\u306e\u3067\u3001\u307e\u305a\u306frake\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u5f8c\u306f\u3001RubyGem\u304c\u8db3\u308a\u306a\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30fb\u30fb\u8db3\u308a\u306a\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u4f55\u56de\u304b\u7e70\u308a\u8fd4\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u518d\u5ea6\u3001bundle install\u3084update\u3092\u3057\u305f\u3089\u30fb\u30fb<\/p>\n\n\n\n<p>Unfortunately, an unexpected error occurred, and Bundler cannot continue.<\/p>\n\n\n\n<p>First, try this link to see if there are any existing issue reports for this error:<br>https:\/\/github.com\/rubygems\/rubygems\/search?q=cannot+load+such+file+&#8211;+psych%2Fsyntax_error&amp;type=Issues<\/p>\n\n\n\n<p>If there aren&#8217;t any reports for this error yet, please fill in the new issue form located at https:\/\/github.com\/rubygems\/rubygems\/issues\/new?labels=Bundler&amp;template=bundler-related-issue.md, and copy and paste the report template above in there.<\/p>\n\n\n\n<p>\u3061\u3087\u3063\u3068\u610f\u5473\u304c\u5206\u304b\u3089\u305a\u3001\u3068\u308a\u3042\u3048\u305a\u3001git push heroku master\u3067\u30c7\u30d7\u30ed\u30a4\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>remote: Updated 18760 paths from 4b2a6ff6<br>remote: Compressing source files\u2026 done.<br>remote: Building source:<br>remote:<br>remote: &#8212;&#8211;&gt; Building on the Heroku-24 stack<br>remote: &#8212;&#8211;&gt; Using buildpack: heroku\/ruby<br>remote: &#8212;&#8211;&gt; Ruby app detected<br>remote: &#8212;&#8211;&gt; Installing bundler 1.17.3<br>remote: &#8212;&#8211;&gt; Removing BUNDLED WITH version in the Gemfile.lock<br>remote: &#8212;&#8211;&gt; Compiling Ruby\/Rails<br>remote: &#8212;&#8211;&gt; Using Ruby version: ruby-3.2.2<br>remote: Purging Cache. Changing stack from heroku-18 to heroku-24<br>remote: &#8212;&#8211;&gt; Installing dependencies using bundler 1.17.3<br>remote: Running: BUNDLE_WITHOUT=&#8217;development:test&#8217; BUNDLE_PATH=vendor\/bundle BUNDLE_BIN=vendor\/bundle\/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4<br>remote: You are trying to install in deployment mode after changing<br>remote: your Gemfile. Run <code>bundle install<\/code> elsewhere and add the<br>remote: updated Gemfile.lock to version control.<br>remote:<br>remote: Bundler is unlocking ruby<br>remote:<br>remote: You have added to the Gemfile:<br>remote: * listen (= 3.4.1)<br>remote:<br>remote: You have deleted from the Gemfile:<br>remote: * listen (= 3.1.5)<br>remote: Bundler Output: You are trying to install in deployment mode after changing<br>remote: your Gemfile. Run <code>bundle install<\/code> elsewhere and add the<br>remote: updated Gemfile.lock to version control.<br>remote:<br>remote: Bundler is unlocking ruby<br>remote:<br>remote: You have added to the Gemfile:<br>remote: * listen (= 3.4.1)<br>remote:<br>remote: You have deleted from the Gemfile:<br>remote: * listen (= 3.1.5)<br>remote:<br>remote: !<br>remote: ! Failed to install gems via Bundler.<br>remote: !<br>remote: ! Push rejected, failed to compile Ruby app.<br>remote:<br>remote: ! Push failed<br>remote: Verifying deploy\u2026<br>remote:<br>remote: ! Push rejected to ogawas.<br>remote:<br>To https:\/\/git.heroku.com\/ogawas.git<br>! [remote rejected] master -&gt; master (pre-receive hook declined)<br>error: failed to push some refs to &#8216;https:\/\/git.heroku.com\/ogawas.git&#8217;<\/p>\n\n\n\n<p>\u3061\u3087\u3063\u3068\u982d\u304c\u6df7\u4e71\u3057\u3066\u304d\u305f\u306e\u3067\u3059\u304c\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u95a2\u4fc2\u306e\u30a8\u30e9\u30fc\uff08Gemfile.lock\u5185\u306e\u4f9d\u5b58\u6027\u304c\u5408\u308f\u306a\u3044\uff1f\uff09\u3068\u3044\u3046\u3053\u3068\u306f\u5206\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>gemfile.lock\u3092\u524a\u9664\u5f8c\u3001gem install bundler -v 1.17.3\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3068\u3044\u3044\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u8a18\u4e8b\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u3053\u308c\u3092\u3084\u3063\u3066\u3082\u3060\u3081\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3061\u3087\u3063\u3068\u4eca\u306e\u79c1\u306b\u306f\u624b\u306b\u8ca0\u3048\u306a\u3044\u3067\u3059\u306d\u3002Rubyist\u3058\u3083\u306a\u3044\u306e\u3067\u3001\u3082\u3046\u5c11\u3057\u8abf\u3079\u3066\u77e5\u898b\u3092\u5f97\u306a\u3044\u3068\u30c0\u30e1\u3067\u3059\u30fb\u30fb<\/p>\n\n\n\n<p>\u306f\u3044\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u5f8c\u8abf\u3079\u3066\u89e3\u6c7a\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001Ruby\u306b\u8a73\u3057\u3044\u65b9\u3068\u304b\u5206\u304b\u308b\u65b9\u3044\u3089\u3057\u305f\u3089\u3001\u30a2\u30c9\u30d0\u30a4\u30b9\u3092\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001Heroku\u306b\u30c7\u30d7\u30ed\u30a4\u6e08\u306eRai&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mo_disable_npp":"","footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-1903","post","type-post","status-publish","format-standard","hentry","category-web","category-techblog","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/posts\/1903","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/comments?post=1903"}],"version-history":[{"count":6,"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/posts\/1903\/revisions"}],"predecessor-version":[{"id":1910,"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/posts\/1903\/revisions\/1910"}],"wp:attachment":[{"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/media?parent=1903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/categories?post=1903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kurushimizero.com\/wp2\/wp-json\/wp\/v2\/tags?post=1903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}