Skip to content

Commit

Permalink
attempting again
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kaufman committed Jan 12, 2018
1 parent 14fcb8b commit 64a3f02
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ topic() {
APP_PREFIX=/app/.heroku
mkdir -p $APP_PREFIX

BP_CACHE_DIR="$CACHE_DIR/heroku-openresty-buildpack"
mkdir -p $BP_CACHE_DIR
OPENRESTY_CACHE_DIR="$BP_CACHE_DIR/app"
mkdir -p $CACHE_DIR


if [ -d "$OPENRESTY_CACHE_DIR" ]
if [ -d "$CACHE_DIR/$APP_PREFIX" ]
then
topic "Restoring openresty build from cache..."
mv $OPENRESTY_CACHE_DIR $BUILD_DIR/
cp $CACHE_DIR/$APP_PREFIX $BUILD_DIR/
else
PKG=http://openresty.org/download/openresty-1.13.6.1.tar.gz

Expand All @@ -38,7 +36,7 @@ else
cd

topic "Caching directory..."
cp -R $APP_PREFIX $OPENRESTY_CACHE_DIR
cp -R $APP_PREFIX $CACHE_DIR

topic "Making Openresty available to running application...."
mv $APP_PREFIX $BUILD_DIR/
Expand Down

0 comments on commit 64a3f02

Please sign in to comment.