agentzh/ngx_openresty — Issue #7: Heroku support
Author: jtarchie
Created: 2012-01-29 17:35:34+00:00
State: open

I've wanted to use ngx_openresty for awhile, but didn't want to have to support a server, compilation, etc. Heroku is my goto. Their buildpack mechanism allows you to package the necessary binaries with your application code, so that it can be deployed to their cloud environment easily.

I work a with cloud hosting solutions. Heroku has proven, thus far, to be the most open and supportive environment for any platform that can serve HTTP requests.

I put together a proof of concept buildpack for Heroku that supports ngx_openresty. Basically any application that has a nginx.conf at the application's root level will automatically be packaged as an OpenResty application. I've compiled OpenResty of have every single module (no MySQL, since Heroku uses Postgres).

The buildpack can be found [here](https://github.com/jtarchie/heroku-buildpack-openresty). Right now its supporting an earlier version (1.0.10.24) of ngx_openresty, but with a little work could be expanded. Also, please keep in mind that I am currently hosting the buildpack, so my S3 charges are being applied, so keep it minimal.

Any questions or thoughts are welcome. Thanks for the great platform.