diff --git a/conf/nginx.conf.erb b/conf/nginx.conf.erb index 2189ddb..82e8b4d 100644 --- a/conf/nginx.conf.erb +++ b/conf/nginx.conf.erb @@ -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; } }