Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Respect the RACK_ENV that thin gives

  • Loading branch information...
commit 33cbef5b6bc5f6de4b23b6255c07a147be2d11ac 1 parent 7b20242
@bmizerany bmizerany authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sinatra.rb
View
2  lib/sinatra.rb
@@ -928,7 +928,7 @@ def self.default_options
:run => true,
:port => 4567,
:host => '0.0.0.0',
- :env => :development,
+ :env => (ENV['RACK_ENV'].to_sym rescue :development),
:root => root,
:views => root + '/views',
:public => root + '/public',
Please sign in to comment.
Something went wrong with that request. Please try again.