Commit 08d8f7af authored by Ismael Posada Trobo's avatar Ismael Posada Trobo
Browse files

DEV: Avoid $ globals

parent 2238f35c
...@@ -25,7 +25,7 @@ end ...@@ -25,7 +25,7 @@ end
pid (ENV["UNICORN_PID_PATH"] || "#{discourse_path}/tmp/pids/unicorn.pid") pid (ENV["UNICORN_PID_PATH"] || "#{discourse_path}/tmp/pids/unicorn.pid")
if ENV["RAILS_ENV"] != "production" if ENV["RAILS_ENV"] != "production"
logger Logger.new($stdout) logger Logger.new(STDOUT)
# we want a longer timeout in dev cause first request can be really slow # we want a longer timeout in dev cause first request can be really slow
timeout (ENV["UNICORN_TIMEOUT"] && ENV["UNICORN_TIMEOUT"].to_i || 60) timeout (ENV["UNICORN_TIMEOUT"] && ENV["UNICORN_TIMEOUT"].to_i || 60)
else else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment