Skip to content

Commit

Permalink
Merge pull request #253 from ojacobson/preserve-original-build-dir
Browse files Browse the repository at this point in the history
Preserve original build directory (including previously-installed programs) when moving app to /app during build.
  • Loading branch information
kennethreitz committed Oct 8, 2015
2 parents 83538ca + 67c3d38 commit 1e5ff1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if [[ ! "$DOCKER_BUILD" ]]; then

# Copy Application code in.
bpwatch start appdir_stage
deep-mv $BUILD_DIR $APP_DIR
deep-cp $BUILD_DIR $APP_DIR
bpwatch stop appdir_stage
fi

Expand Down Expand Up @@ -218,6 +218,7 @@ bpwatch stop dump_cache
if [[ ! "$DOCKER_BUILD" ]]; then

bpwatch start appdir_commit
rm -rf $ORIG_BUILD_DIR
deep-mv $BUILD_DIR $ORIG_BUILD_DIR
bpwatch stop appdir_commit

Expand Down

0 comments on commit 1e5ff1f

Please sign in to comment.