jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
592 stars 49 forks source link

Setting RACK_ENV makes no sense #73

Closed leshik closed 6 years ago

leshik commented 6 years ago

Setting RACK_ENV to values other than development, deployment, or none makes no sense, as per rackup howto. Setting it to production or test is equal to setting it to none (disabling logging middleware), so it's not the RAILS_ENV replacement for rack apps. Here are some explanations. I'm not sure how this should be addressed, maybe using the different env var would be better.