ryandotsmith / nginx-buildpack

Run NGINX in front of your app server on Heroku
457 stars 248 forks source link

Please add example of how to use this in combination with pgbouncer buildpack #38

Open diwu1989 opened 10 years ago

diwu1989 commented 10 years ago

I'm having trouble getting this buildpack to work in combination with the pgbouncer buildpack.

Can you add a section in the readme to demonstrate how to make that combo to work?

diwu1989 commented 10 years ago

One thing that I did to get gunicorn to work well with the buildpack is I used the --pid feature to write the app-initialized file after gunicorn starts.

a-warner commented 9 years ago

@diwu1989 here's what I ended up doing to couple the pgbounder/nginx buildpacks w/thin

bin/start-pgbouncer-stunnel bin/start-nginx bundle exec thin --environment $RAILS_ENV --socket /tmp/nginx.socket --rackup config.ru start