Fix the build of the unicorn backend.

This commit is contained in:
Andrea Dell'Amico 2021-07-07 11:29:07 +02:00
parent 90919ce2a8
commit 9aef892765
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
template: src=nginx_unicorn.conf.j2 dest=/etc/nginx/conf.d/nginx_unicorn.conf
notify: Restart nginx
tags: [ 'ruby', 'redmine', 'unicorn' ]
tags: [ 'ruby', 'redmine', 'unicorn', 'unicorn_nginx' ]
when: ansible_distribution_version is version_compare('18.04', '==')
- block:

View File

@ -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, {{ unicorn_worker_processes - 1 }} %}
{% for i in range(0, unicorn_worker_processes - 1) %}
server 127.0.0.1:{{ unicorn_listen_port + i }} fail_timeout=0;
{% endfor %}
}