My situation is very similar to SemiFixed: There is no `secret_key_base` environment for 'production' :
my config / secrets.yml
production: secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
I added an entry in / etc / environment so that when you log in and type
echo $SECRET_KEY_BASE
I get a long string that I created with a secret rake. But still I get 500 errors for Missing secret_key_base for the "production" environment, set this value to config / secrets.yml, even after I reset the entire computer. So what else could go wrong?
ruby-on-rails
cpliu338
source share