@hatabowyou バージョンは関係なかったようです。RAILS_ENVを指定しないとエラーが出るようです。
$ RAILS_ENV=production bundle exec rake secret
でいかがでしょう?
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.