Skip to content

Commit 5c9412f

Browse files
committed
moves cache storage until after the post_compile hook.
1 parent 825c932 commit 5c9412f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bin/compile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,6 @@ source $BIN_DIR/steps/collectstatic
169169
# ### Finalize
170170
#
171171

172-
# Store new artifacts in cache.
173-
for dir in $CACHED_DIRS; do
174-
rm -rf $CACHE_DIR/$dir
175-
cp -R $dir $CACHE_DIR/
176-
done
177-
178172
# Set context environment variables.
179173
set-env PATH '$HOME/.heroku/python/bin:$PATH'
180174
set-env PYTHONUNBUFFERED true
@@ -189,6 +183,12 @@ set-default-env PYTHONPATH /app/
189183
# Experimental post_compile hook.
190184
source $BIN_DIR/steps/hooks/post_compile
191185

186+
# Store new artifacts in cache.
187+
for dir in $CACHED_DIRS; do
188+
rm -rf $CACHE_DIR/$dir
189+
cp -R $dir $CACHE_DIR/
190+
done
191+
192192
# ### Fin.
193193

194194
deep-mv $BUILD_DIR $ORIG_BUILD_DIR

0 commit comments

Comments
 (0)