ryandotsmith / nginx-buildpack

Run NGINX in front of your app server on Heroku
456 stars 783 forks source link

Why not use nginx.conf for configuring nginx? #65

Closed dderg closed 7 years ago

dderg commented 7 years ago

It would be more consistent for me to use same config on my local machine and heroku, but readme says i should use .erb for heroku, why?

dderg commented 7 years ago

I have read sources and found out that only reason for this is getting environment, but nginx can do it itself by using ${PORT}

dderg commented 7 years ago

ok, i did try it myself, it doesnt work