CLI: `railway shell` has ENV variables, but not accessible in Rails?
The code in
production.rb
that is erroring out is user_name: ENV.fetch('SMTP_USER')
Any ideas?2 Replies
Project ID:
9ddc4dfb-ab3f-4809-8481-9657a0c52a43
9ddc4dfb-ab3f-4809-8481-9657a0c52a43
I "fixed" this by only relying on
Rails.credentials
and never ENV.fetch()
. However, Rails.credentials
relies on RAILS_MASTER_KEY
, which it is obviously getting, so the error still seems weird to me.