hotwire-love / touhyosan

Hotwire.love で使う投票ツール
MIT License
13 stars 19 forks source link

config/cable.ymlのproductionの定義を#でコメントアウトしても、bin/setup実行時にエラー発生 #31

Closed ykominami closed 1 year ago

ykominami commented 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 ==

ykominami commented 1 year ago

config/cable.ymlからproductionの定義を(コメントアウトではなく)削除すると、上記エラーは発生しない。