mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
b548b624ea
- prevents apps from forever poisoning the ENV by doing bad things (something overrides PATH/HOME etc) - allows use of Dotenv to load new ENV settings from disk (they do not override) Test: ``` puts "THIS SHOULD CHANGE #{ENV["TEST"] ||= rand.to_s}" ``` then restart the server
2 lines
118 B
Ruby
2 lines
118 B
Ruby
ENV["RAND"] ||= rand.to_s
|
|
run lambda { |env| [200, {"Content-Type" => "text/plain"}, ["Hello RAND #{ENV["RAND"]}"]] }
|