Commit 38d73eff authored by Kenneth Reitz's avatar Kenneth Reitz

an attempt at fixing caching

parent 7cf8712d
...@@ -20,7 +20,8 @@ CACHE_DIR=$2 ...@@ -20,7 +20,8 @@ CACHE_DIR=$2
ENV_DIR=$3 ENV_DIR=$3
CACHED_DIRS=".heroku" CACHED_DIR=".heroku"
CACHED_DIRS=".heroku/python .heroku/python-stack .heroku/python-version .heroku/vendor .heroku/venv"
# Static configurations for virtualenv caches. # Static configurations for virtualenv caches.
VIRTUALENV_LOC=".heroku/venv" VIRTUALENV_LOC=".heroku/venv"
...@@ -145,6 +146,7 @@ bpwatch stop clear_old_venvs ...@@ -145,6 +146,7 @@ bpwatch stop clear_old_venvs
# Restore old artifacts from the cache. # Restore old artifacts from the cache.
bpwatch start restore_cache bpwatch start restore_cache
mkdir -p $CACHEDIR/$CACHED_DIR
for dir in $CACHED_DIRS; do for dir in $CACHED_DIRS; do
cp -R $CACHE_DIR/$dir . &> /dev/null || true cp -R $CACHE_DIR/$dir . &> /dev/null || true
done done
...@@ -209,6 +211,7 @@ bpwatch stop post_compile ...@@ -209,6 +211,7 @@ bpwatch stop post_compile
# Store new artifacts in cache. # Store new artifacts in cache.
bpwatch start dump_cache bpwatch start dump_cache
mkdir -p $CACHE_DIR/$CACHED_DIR
for dir in $CACHED_DIRS; do for dir in $CACHED_DIRS; do
rm -rf $CACHE_DIR/$dir rm -rf $CACHE_DIR/$dir
cp -R $dir $CACHE_DIR/ cp -R $dir $CACHE_DIR/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment