Add ENV variable to specify path to write unicorn's pid.

This commit is contained in:
Guo Xiang Tan 2017-06-06 11:46:01 +09:00
parent 0ecb668d49
commit 87e77267fa

View File

@ -17,7 +17,7 @@ listen (ENV["UNICORN_PORT"] || 3000).to_i
timeout 30
# feel free to point this anywhere accessible on the filesystem
pid "#{discourse_path}/tmp/pids/unicorn.pid"
pid (ENV["UNICORN_PID_PATH"] || "#{discourse_path}/tmp/pids/unicorn.pid")
# By default, the Unicorn logger will write to stderr.
# Additionally, some applications/frameworks log to stderr or stdout,