Skip to content

Commit

Permalink
abandon caching
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kaufman committed Jan 12, 2018
1 parent 64a3f02 commit 4b5d77e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ mkdir -p $APP_PREFIX
mkdir -p $CACHE_DIR


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

topic "Downloading Openresty..."
Expand All @@ -35,12 +35,12 @@ else
make install
cd

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

topic "Making Openresty available to running application...."
mv $APP_PREFIX $BUILD_DIR/
fi
# fi

mkdir -p $BUILD_DIR/conf/env/vars
cp $ENV_DIR/* $BUILD_DIR/conf/env/vars
Expand Down

0 comments on commit 4b5d77e

Please sign in to comment.