Closed ykominami closed 1 year ago
bin/setup == Installing dependencies == The Gemfile's dependencies are satisfied yarn install v1.22.19 [1/4] Resolving packages... success Already up-to-date. Done in 0.17s. == Preparing database == rails aborted! KeyError: key not found: "REDIS_URL" /home/ykominami/cur/rails7/HotWire/hotwire.love/hotwire.love/touhyosan/config/cable.yml:11:in fetch' /home/ykominami/cur/rails7/HotWire/hotwire.love/hotwire.love/touhyosan/config/cable.yml:11:in' /home/ykominami/cur/rails7/HotWire/hotwire.love/hotwire.love/touhyosan/config/environment.rb:5:in `' Tasks: TOP => db:prepare => db:load_config => environment (See full trace by running task with --trace) == Command ["bin/rails db:prepare"] failed ==
bin/setup == Installing dependencies == The Gemfile's dependencies are satisfied yarn install v1.22.19 [1/4] Resolving packages... success Already up-to-date. Done in 0.17s.
== Preparing database == rails aborted! KeyError: key not found: "REDIS_URL" /home/ykominami/cur/rails7/HotWire/hotwire.love/hotwire.love/touhyosan/config/cable.yml:11:in fetch' /home/ykominami/cur/rails7/HotWire/hotwire.love/hotwire.love/touhyosan/config/cable.yml:11:in' /home/ykominami/cur/rails7/HotWire/hotwire.love/hotwire.love/touhyosan/config/environment.rb:5:in `' Tasks: TOP => db:prepare => db:load_config => environment (See full trace by running task with --trace)
fetch' /home/ykominami/cur/rails7/HotWire/hotwire.love/hotwire.love/touhyosan/config/cable.yml:11:in
== Command ["bin/rails db:prepare"] failed ==
config/cable.ymlからproductionの定義を(コメントアウトではなく)削除すると、上記エラーは発生しない。