I got the error message "There was an unhandled low-level error" when I first deployed my application to Heroku, and it heroku logsshows:
Not available secret_key_basefor production environment, set this value toconfig/secrets.yml
1) Default secrets.ymlindicates secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>for production
2) I generated a secret using rails secret, then added this to the configuration of my Heroku application viaheroku config:set SECRET_KEY_BASE='(the key)'
3) heroku configshows this value set forsecret_key_base
4) Perhaps, the most important thing, based on older questions regarding this error, .gitignoredoes not include secrets.yml- this is the default .gitignore generated for the Rails 5 application. Therefore, it secrets.ymlhad to be deployed with my application, which indicates that the secret will be loaded through the environment variable in a working environment.
5) I also started heroku ps:restartif the application needed additional help to set the environment variable
I was reading old posts, but the last answer seemed to ensure that secrets.ymlit was not included in .gitignore, but as already mentioned, this does not apply to Rails 5 by default .gitignore.
What else can I try? thank.
Edit: when I set the configuration value on the command line, I also get a Heroku message:
SECRET_KEY_BASE ()... done