From 5c9412fc33db7e905bca08544f548e525a2212c1 Mon Sep 17 00:00:00 2001 From: Steven Skoczen <steven.skoczen@buildingenergy.com> Date: Fri, 26 Apr 2013 16:27:00 -0700 Subject: [PATCH] moves cache storage until after the post_compile hook. --- bin/compile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/compile b/bin/compile index 84e4056b..187c3c2b 100755 --- a/bin/compile +++ b/bin/compile @@ -169,12 +169,6 @@ source $BIN_DIR/steps/collectstatic # ### Finalize # -# Store new artifacts in cache. -for dir in $CACHED_DIRS; do - rm -rf $CACHE_DIR/$dir - cp -R $dir $CACHE_DIR/ -done - # Set context environment variables. set-env PATH '$HOME/.heroku/python/bin:$PATH' set-env PYTHONUNBUFFERED true @@ -189,6 +183,12 @@ set-default-env PYTHONPATH /app/ # Experimental post_compile hook. source $BIN_DIR/steps/hooks/post_compile +# Store new artifacts in cache. +for dir in $CACHED_DIRS; do + rm -rf $CACHE_DIR/$dir + cp -R $dir $CACHE_DIR/ +done + # ### Fin. deep-mv $BUILD_DIR $ORIG_BUILD_DIR -- GitLab