1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2024-12-26 05:55:24 +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

@ -8,3 +8,6 @@
* nginx.conf.erb - Optional File: overrides `conf/nginx.conf.erb`
* mime.types - Optional File: overrides `conf/mime.types`
* custom-build - Optional File: executes commands before build is finished
## Environment Variables
* root - Optional: overrides root directory

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;
}
}