1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2025-10-05 02:04:33 +00:00

Allow root directory to be overridden via environment variable

This commit is contained in:
rhy-jot
2014-06-20 10:38:48 -07:00
parent 7823793f53
commit 04ecbabbc4
2 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,7 @@ http {
server {
listen <%= ENV['PORT'] %>;
server_name _;
root /app/www;
root <%= ENV.fetch('root', '/app/www') %>;
index index.html;
}
}