hotwire-love / touhyosan

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

環境変数REDIS_URLが設定されていないと、bin/setupでエラー発生 #30

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.11s.

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

development環境では、環境変数REDIS_URLが設定されていれば(redisがインストールされておらず、環境変数の値が正しくなくても)、bin/setupはエラーにならず、bin/devも正常に実行できます。