Skip to content

Commit 635cb55

Browse files
Merge remote-tracking branch 'upstream/master' into develop
- Do not take in changes relating to EXPORT_PATH because of the read-only buildpack dir [#133836011] Signed-off-by: Sam Smith <[email protected]>
2 parents f5bc635 + d8307c2 commit 635cb55

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bin/compile

+5-3
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export PATH=$PATH:$ROOT_DIR/vendor/pip-pop
7575
# Support Anvil Build_IDs
7676
[ ! "$SLUG_ID" ] && SLUG_ID="defaultslug"
7777
[ ! "$REQUEST_ID" ] && REQUEST_ID=$SLUG_ID
78+
[[ $BUILD_DIR == "/app" ]] && SKIP_MOVE_BUILD=$1
7879

7980
# Sanitizing environment variables.
8081
unset GIT_DIR PYTHONHOME PYTHONPATH
@@ -100,7 +101,7 @@ TMP_APP_DIR=$CACHE_DIR/tmp_app_dir
100101

101102

102103
# Skip these steps for Docker.
103-
if [[ ! "$DOCKER_BUILD" ]]; then
104+
if [[ ! "$SKIP_MOVE_BUILD" ]]; then
104105

105106
# Copy Anvil app dir to temporary storage...
106107
bpwatch start anvil_appdir_stage
@@ -125,10 +126,11 @@ BUILD_DIR=$APP_DIR
125126

126127
# Set up outputs under new context
127128
PROFILE_PATH="$BUILD_DIR/.profile.d/python.sh"
129+
EXPORT_PATH="$BIN_DIR/../export"
128130
GUNICORN_PROFILE_PATH="$BUILD_DIR/.profile.d/python.gunicorn.sh"
129131

130132
# We'll need to send these statics to other scripts we `source`.
131-
export BUILD_DIR CACHE_DIR BIN_DIR PROFILE_PATH
133+
export BUILD_DIR CACHE_DIR BIN_DIR PROFILE_PATH EXPORT_PATH
132134

133135
# Prepend proper environment variables for Python use.
134136
export PATH=$BUILD_DIR/.heroku/python/bin:$BUILD_DIR/.heroku/vendor/bin:$PATH
@@ -274,7 +276,7 @@ bpwatch start dump_cache
274276
bpwatch stop dump_cache
275277

276278
# Fin.
277-
if [[ ! "$DOCKER_BUILD" ]]; then
279+
if [[ ! "$SKIP_MOVE_BUILD" ]]; then
278280

279281
bpwatch start appdir_commit
280282
deep-rm $ORIG_BUILD_DIR

0 commit comments

Comments
 (0)