mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Formatting fix
This commit is contained in:
parent
39a06e702a
commit
27b2f8e60a
2 changed files with 7 additions and 3 deletions
|
@ -41,7 +41,7 @@ module Puma
|
||||||
when "/stats"
|
when "/stats"
|
||||||
b = @server.backlog
|
b = @server.backlog
|
||||||
r = @server.running
|
r = @server.running
|
||||||
return rack_response(200, %Q!{ "backlog": #{b}, "running": #{r} }!)
|
return rack_response(200, %Q!{ "backlog": #{b}, "running": #{r} }!)
|
||||||
end
|
end
|
||||||
|
|
||||||
rack_response 404, "Unsupported action", 'text/plain'
|
rack_response 404, "Unsupported action", 'text/plain'
|
||||||
|
|
|
@ -238,8 +238,12 @@ module Puma
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_rack_environment
|
def set_rack_environment
|
||||||
# Try the user option first, then the environment variable, finally default to development
|
# Try the user option first, then the environment variable,
|
||||||
ENV['RACK_ENV'] = @options[:environment] || ENV['RACK_ENV'] || 'development'
|
# finally default to development
|
||||||
|
|
||||||
|
ENV['RACK_ENV'] = @options[:environment] ||
|
||||||
|
ENV['RACK_ENV'] ||
|
||||||
|
'development'
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_pidfile
|
def delete_pidfile
|
||||||
|
|
Loading…
Add table
Reference in a new issue