whitelist cache

This commit is contained in:
2015-10-13 10:13:23 -04:00
parent c0fbb0723a
commit 24cc273800
+5 -5
View File
@@ -145,16 +145,16 @@ bpwatch start clear_old_venvs
[ -d $CACHE_DIR/$VIRTUALENV_LOC ] && rm -fr $CACHE_DIR/.heroku/venv $CACHE_DIR/.heroku/src
bpwatch stop clear_old_venvs
cd $CACHE_DIR
rm !($WHITELISTED_CACHE_ENTRIES)
cd $BUILD_DIR
# Restore old artifacts from the cache.
bpwatch start restore_cache
cp -R $CACHE_DIR/$CACHED_DIR . &> /dev/null || true
bpwatch stop restore_cache
# Cleanup what's in the cache.
cd $CACHED_DIR
rm !($WHITELISTED_CACHE_ENTRIES)
cd $BUILD_DIR
set +e
# Create set-aside `.heroku` folder.
mkdir .heroku &> /dev/null