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`
|
* nginx.conf.erb - Optional File: overrides `conf/nginx.conf.erb`
|
||||||
* mime.types - Optional File: overrides `conf/mime.types`
|
* mime.types - Optional File: overrides `conf/mime.types`
|
||||||
* custom-build - Optional File: executes commands before build is finished
|
* custom-build - Optional File: executes commands before build is finished
|
||||||
|
|
||||||
|
## Environment Variables
|
||||||
|
* root - Optional: overrides root directory
|
||||||
|
|
|
@ -12,7 +12,7 @@ http {
|
||||||
server {
|
server {
|
||||||
listen <%= ENV['PORT'] %>;
|
listen <%= ENV['PORT'] %>;
|
||||||
server_name _;
|
server_name _;
|
||||||
root /app/www;
|
root <%= ENV.fetch('root', '/app/www') %>;
|
||||||
index index.html;
|
index index.html;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue