I recently made a change to my Rails credentials file, and so needed to update my RAILS_MASTER_KEY
config var in Heroku.
My application release initially failed when I pushed the latest change with the expected error:
ActiveSupport::MessageEncryptor::InvalidMessage
The solution being updating the RAILS_MASTER_KEY
like I mentioned above, however, my attempts to do this have failed:
heroku config:set RAILS_MASTER_KEY=*****************224 --app my-platform
Setting RAILS_MASTER_KEY and restarting ⬢ my-platform... ⢿
› Warning: Release command executing: this config change will not be available until the command succeeds. Use `heroku releases:output` to view the log.
Setting RAILS_MASTER_KEY and restarting ⬢ my-platform... done, v442
RAILS_MASTER_KEY: *****************1c9
The var above isn't being changed when I attempt to change via the CLI.
Var changes in Heroku's UI also do not update or allow me to add any - when I refresh the page, the updates haven't taken effect.
After speaking to Heroku support, they said this is expected behaviour when a release fails. They also told me to rollback, which I did, but then the problem persists.
Does anyone have a good solution to this?