Add clean error message when RAILS_ENV is unset (#15381)
Add clean error message when RAILS_ENV is unset (#15381)

By default, an unset RAILS_ENV is understood as RAILS_ENV=development.

However, this is not what most people expect, and due to development-only
dependencies, users are often left with confusing error messages.

This commit changes it so that an explicit RAILS_ENV is required, and
failing that, an error message is displayed before loading the app.

Co-authored-by: Claire <82b964c50e9d1d222e48cf5046e6484a966a7b07@sitedethib.com>
lynlynlynx/mastodon,ikuradon/mastodon,im-in-space/mastodon,koba-lab/mastodon,lindwurm/mastodon,yi0713/mastodon,cobodo/mastodon,danhunsaker/mastodon,lynlynlynx/mastodon,Kirishima21/mastodon,imas/mastodon,lynlynlynx/mastodon,abcang/mastodon,glitch-soc/mastodon,lindwurm/mastodon,tri-star/mastodon,masto-donte-com-br/mastodon,musashino205/mastodon,glitch-soc/mastodon,h3zjp/mastodon,yukimochi/mastodon,tootcafe/mastodon,abcang/mastodon,tootcafe/mastodon,Nyoho/mastodon,MitarashiDango/mastodon,maa123/mastodon,theoria24/mastodon,danhunsaker/mastodon,tootcafe/mastodon,pinfort/mastodon,ikuradon/mastodon,primenumber/mastodon,im-in-space/mastodon,Ryanaka/mastodon,maa123/mastodon,pinfort/mastodon,tootsuite/mastodon,h3zjp/mastodon,primenumber/mastodon,MitarashiDango/mastodon,yi0713/mastodon,masto-donte-com-br/mastodon,abcang/mastodon,yi0713/mastodon,maa123/mastodon,danhunsaker/mastodon,yi0713/mastodon,glitch-soc/mastodon,musashino205/mastodon,gol-cha/mastodon,pinfort/mastodon,yukimochi/mastodon,h3zjp/mastodon,Ryanaka/mastodon,lindwurm/mastodon,lynlynlynx/mastodon,tootsuite/mastodon,imas/mastodon,koba-lab/mastodon,musashino205/mastodon,cobodo/mastodon,ikuradon/mastodon,koba-lab/mastodon,yukimochi/mastodon,maa123/mastodon,Nyoho/mastodon,im-in-space/mastodon,imas/mastodon,gol-cha/mastodon,tri-star/mastodon,Ryanaka/mastodon,Nyoho/mastodon,abcang/mastodon,koba-lab/mastodon,tootcafe/mastodon,tootsuite/mastodon,theoria24/mastodon,danhunsaker/mastodon,ykzts/mastodon,primenumber/mastodon,tri-star/mastodon,Nyoho/mastodon,MitarashiDango/mastodon,Kirishima21/mastodon,masto-donte-com-br/mastodon,primenumber/mastodon,Ryanaka/mastodon,cobodo/mastodon,ykzts/mastodon,ikuradon/mastodon,theoria24/mastodon,lindwurm/mastodon,glitch-soc/mastodon,masto-donte-com-br/mastodon,yukimochi/mastodon,ykzts/mastodon,cobodo/mastodon,gol-cha/mastodon,musashino205/mastodon,Kirishima21/mastodon,pinfort/mastodon,tri-star/mastodon,MitarashiDango/mastodon,gol-cha/mastodon,theoria24/mastodon,Kirishima21/mastodon,ykzts/mastodon,im-in-space/mastodon,imas/mastodon,tootsuite/mastodon,h3zjp/mastodon