Tap for Homebrew that adds a formula for OpenResty.
OpenResty (aka. ngx_openresty) is a full-fledged web application server by bundling the standard Nginx core, lots of 3rd-party Nginx modules, as well as most of their external dependencies.
By taking advantage of various well-designed Nginx modules, OpenResty effectively turns the nginx server into a powerful web app server, in which the web developers can use the Lua programming language to script various existing nginx C modules and Lua modules and construct extremely high-performance web applications that is capable to handle 10K+ connections.
(from http://openresty.org/)
$ brew tap killercup/homebrew-openresty
$ brew install ngx_openresty
To enable PostgreSQL support:
$ brew install ngx_openresty --with-postgresql
For a list of all options available, have a look at:
$ brew info ngx_openresty
To run your OpenResty instance:
$ sudo openresty
To stop your OpenResty instance:
$ sudo openresty -s stop
If you want to update or enhance this formular, feel free to send a pull request.