Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed bin/nginx-cedar
Binary file not shown.
Binary file modified bin/nginx-cedar-14
Binary file not shown.
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ Some application servers (e.g. Ruby's Unicorn) halt progress when dealing with n
## Versions

* Buildpack Version: 0.4
* NGINX Version: 1.5.7
* NGINX Version: 1.7.10
* Nginix Module - Headers More version: 0.25

## Requirements

Expand Down Expand Up @@ -71,6 +72,8 @@ You can provide your own NGINX config by creating a file named `nginx.conf.erb`

See [scripts/build_nginx.sh](scripts/build_nginx.sh) for the build steps. Configuring is as easy as changing the "./configure" options.

In order to update the binary you should fork this repository, clone this repo into a new (STANDART STACK) heroku application while making your build changes, then download the binary from the incorporated web server and update the corresponding files in the build folder

### Application/Dyno coordination

The buildpack will not start NGINX until a file has been written to `/tmp/app-initialized`. Since NGINX binds to the dyno's $PORT and since the $PORT determines if the app can receive traffic, you can delay NGINX accepting traffic until your application is ready to handle it. The examples below show how/when you should write the file when working with Unicorn.
Expand Down
Empty file added requirements.txt
Empty file.
4 changes: 2 additions & 2 deletions scripts/build_nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# Once the dyno has is 'up' you can open your browser and navigate
# this dyno's directory structure to download the nginx binary.

NGINX_VERSION=${NGINX_VERSION-1.5.7}
NGINX_VERSION=${NGINX_VERSION-1.7.10}
PCRE_VERSION=${PCRE_VERSION-8.21}
HEADERS_MORE_VERSION=${HEADERS_MORE_VERSION-0.23}
HEADERS_MORE_VERSION=${HEADERS_MORE_VERSION-0.25}

nginx_tarball_url=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
pcre_tarball_url=http://garr.dl.sourceforge.net/project/pcre/pcre/${PCRE_VERSION}/pcre-${PCRE_VERSION}.tar.bz2
Expand Down