Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: Want to access UNIX environment variable

$
0
0
Have puppet generate the configuration based on that variable.

--
Snet form my moblie phoen. Please excues tpyos.
On Feb 28, 2013 1:05 AM, "amodpandey" <nginx-forum@nginx.us> wrote:

> Let me put what I want to achieve.
>
> Before that I want to know what is this 'env' global directive for?
>
> I want to maintain a single set of configuration files for dev and prod.
> The
> machines would have environment variable set ENV=dev or ENV=prod. Based on
> the values of the ENV varibale I wanted to pick my upstream conf, either
> upstream_dev.conf or upstream_prod.conf through 'include
> upstream_$ENV.conf'.
>
> Please suggest an approach.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,236654,236704#msg-236704
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>