Merge pull request #8 from btkostner/master

added ROOT variable
This commit is contained in:
Florian Heinemann 2015-10-10 22:45:21 +02:00
commit 7a023ab687
1 changed files with 5 additions and 1 deletions

View File

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