mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2024-11-29 03:43:05 +00:00
Allow root directory to be overridden via environment variable
This commit is contained in:
parent
7823793f53
commit
04ecbabbc4
@ -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
|
||||
|
@ -12,7 +12,7 @@ http {
|
||||
server {
|
||||
listen <%= ENV['PORT'] %>;
|
||||
server_name _;
|
||||
root /app/www;
|
||||
root <%= ENV.fetch('root', '/app/www') %>;
|
||||
index index.html;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user