Use a variable to set the unicorn workers in nginx.
This commit is contained in:
parent
8f71cd5c32
commit
90919ce2a8
|
@ -7,7 +7,7 @@ upstream unicorn {
|
|||
# server unix:/tmp/.sock fail_timeout=0;
|
||||
|
||||
# for TCP setups, point these to your backend servers
|
||||
{% for i in 0, 4 %}
|
||||
{% for i in 0, {{ unicorn_worker_processes - 1 }} %}
|
||||
server 127.0.0.1:{{ unicorn_listen_port + i }} fail_timeout=0;
|
||||
{% endfor %}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue