mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Enable unicorn logger in test environment
This commit is contained in:
parent
abe688beb3
commit
956f849250
|
@ -25,7 +25,7 @@ end
|
|||
# feel free to point this anywhere accessible on the filesystem
|
||||
pid (ENV["UNICORN_PID_PATH"] || "#{discourse_path}/tmp/pids/unicorn.pid")
|
||||
|
||||
if ENV["RAILS_ENV"] == "development" || !ENV["RAILS_ENV"]
|
||||
if ENV["RAILS_ENV"] != "production"
|
||||
logger Logger.new($stdout)
|
||||
# we want a longer timeout in dev cause first request can be really slow
|
||||
timeout (ENV["UNICORN_TIMEOUT"] && ENV["UNICORN_TIMEOUT"].to_i || 60)
|
||||
|
|
Loading…
Reference in New Issue
Block a user