I'd also recommend adding the Dotenv gem to more easily manage ENV in production. Setting the secret_token in production would be a simple matter of creating a .env file (not in version control) in RAILS_ROOT and appending it with the secret token e.g.
My proposed fix to hide secret_token by default in production. Taken from this blog post here
I'd also recommend adding the Dotenv gem to more easily manage ENV in production. Setting the secret_token in production would be a simple matter of creating a
.env
file (not in version control) inRAILS_ROOT
and appending it with the secret token e.g.