From 5d08a13fa12b1b90cb673309cfb89996864a85d1 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sun, 30 Jun 2019 14:06:59 -0400 Subject: [PATCH] Static files optional for Apache --- templates/apache/vhost.conf.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/apache/vhost.conf.erb b/templates/apache/vhost.conf.erb index 4e7de90..bab179c 100644 --- a/templates/apache/vhost.conf.erb +++ b/templates/apache/vhost.conf.erb @@ -41,11 +41,13 @@ + <% if node['web']['static'] %> <% node['web']['static'].each do |static| -%> Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %> <% end -%> - + <% end -%> + <% if node['web']['wsgi'] %> WSGIDaemonProcess <%= node['app']['name'] %> python-path=<%= node['python']['working-dir'] %> python-home=<%= node['python']['env_path'] %>