Skip to content

Commit 3aa2455

Browse files
committed
Support repeated application options by passing an array of values
The motivating example was: $application_options => { py-autoreload => 1, touch-reload => [ 'file1', 'file2', 'file3', ], } Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
1 parent 20ba5cd commit 3aa2455

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

templates/uwsgi_app.ini.erb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,17 @@ gid = <%= @gid %>
99
<%
1010
if @application_options
1111
@application_options.sort.each do |key, value|
12+
if value.is_a? Array
13+
value.each do |v|
14+
-%>
15+
<%= key %> = <%= v%>
16+
<%
17+
end
18+
else
1219
-%>
1320
<%= key %> = <%= value%>
1421
<%
22+
end
1523
end
1624
end
1725

0 commit comments

Comments
 (0)