Skip to content
Browse files

Allow custom NGINX_VERSION.

  • Loading branch information...
1 parent 5aaaac0 commit 64ba3cce2f1487d380b418648a50f2d7197ae393 Dean Strelau committed May 21, 2012
Showing with 7 additions and 6 deletions.
  1. +2 −1 README.md
  2. +5 −5 bin/compile
View
3 README.md
@@ -53,7 +53,8 @@ For example, you can change the vendored version of nginx to 1.0.12.
First you'll need to build a Heroku-compatible version of nginx:
- $ export AWS_ID=xxx AWS_SECRET=yyy S3_BUCKET=zzz
+ $ vulcan create vulcan-yourname
+ $ export AWS_ID=xxx AWS_SECRET=yyy S3_BUCKET=zzz
$ s3 create $S3_BUCKET
$ support/package_nginx 1.0.12 8.30
View
10 bin/compile
@@ -3,16 +3,16 @@
set -e
-# config
-NGINX_VERSION="1.0.14"
-S3_BUCKET="essh-heroku-buildpack-nginx"
-
# parse and derive params
BUILD_DIR=$1
CACHE_DIR=$2
+# config
+VENDOR_URL="https://s3.amazonaws.com/mint-heroku-buildpacks"
+[ -z "$NGINX_VERSION" ] && NGINX_VERSION="1.2.0"
+
# s3 packages
-NGINX_PACKAGE="http://${S3_BUCKET}.s3.amazonaws.com/nginx-${NGINX_VERSION}.tgz"
+NGINX_PACKAGE="$VENDOR_URL/nginx-${NGINX_VERSION}.tgz"
# vendor directories
VENDORED_NGINX=$(mktemp -d -t nginx.XXXXXX)

0 comments on commit 64ba3cc

Please sign in to comment.
Something went wrong with that request. Please try again.