added ROOT param

This commit is contained in:
Blake Kostner 2015-10-05 17:03:08 -07:00
parent b1370b9c56
commit 69e450813e
1 changed files with 5 additions and 1 deletions

View File

@ -13,7 +13,11 @@ http {
server {
listen <%= ENV["PORT"] %>;
server_name _;
root /app/www;
<% if ENV["ROOT"] %>
root /app/www/<%= ENV["ROOT"] %>;
<% else %>
root /app/www;
<% end %>
index index.html;
}
}