Skip to content
Snippets Groups Projects
Commit c5972cdb authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

.heroku

parent 7b9bc848
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ CACHE_DIR=$2 ...@@ -20,7 +20,7 @@ CACHE_DIR=$2
ENV_DIR=$3 ENV_DIR=$3
CACHED_DIRS=".heroku" CACHED_DIR=".heroku"
# Static configurations for virtualenv caches. # Static configurations for virtualenv caches.
VIRTUALENV_LOC=".heroku/venv" VIRTUALENV_LOC=".heroku/venv"
...@@ -145,9 +145,7 @@ bpwatch stop clear_old_venvs ...@@ -145,9 +145,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
for dir in $CACHED_DIRS; do cp -R $CACHE_DIR/$CACHED_DIR . &> /dev/null || true
cp -R $CACHE_DIR/$dir . &> /dev/null || true
done
bpwatch stop restore_cache bpwatch stop restore_cache
set +e set +e
...@@ -209,10 +207,8 @@ bpwatch stop post_compile ...@@ -209,10 +207,8 @@ bpwatch stop post_compile
# Store new artifacts in cache. # Store new artifacts in cache.
bpwatch start dump_cache bpwatch start dump_cache
for dir in $CACHED_DIRS; do rm -rf $CACHE_DIR/$CACHED_DIR
rm -rf $CACHE_DIR/$dir cp -R $CACHED_DIR $CACHE_DIR/
cp -R $dir $CACHE_DIR/
done
bpwatch stop dump_cache bpwatch stop dump_cache
# ### Fin. # ### Fin.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment