@@ -75,6 +75,7 @@ export PATH=$PATH:$ROOT_DIR/vendor/pip-pop
75
75
# Support Anvil Build_IDs
76
76
[ ! " $SLUG_ID " ] && SLUG_ID=" defaultslug"
77
77
[ ! " $REQUEST_ID " ] && REQUEST_ID=$SLUG_ID
78
+ [[ $BUILD_DIR == " /app" ]] && SKIP_MOVE_BUILD=$1
78
79
79
80
# Sanitizing environment variables.
80
81
unset GIT_DIR PYTHONHOME PYTHONPATH
@@ -100,7 +101,7 @@ TMP_APP_DIR=$CACHE_DIR/tmp_app_dir
100
101
101
102
102
103
# Skip these steps for Docker.
103
- if [[ ! " $DOCKER_BUILD " ]]; then
104
+ if [[ ! " $SKIP_MOVE_BUILD " ]]; then
104
105
105
106
# Copy Anvil app dir to temporary storage...
106
107
bpwatch start anvil_appdir_stage
@@ -125,10 +126,11 @@ BUILD_DIR=$APP_DIR
125
126
126
127
# Set up outputs under new context
127
128
PROFILE_PATH=" $BUILD_DIR /.profile.d/python.sh"
129
+ EXPORT_PATH=" $BIN_DIR /../export"
128
130
GUNICORN_PROFILE_PATH=" $BUILD_DIR /.profile.d/python.gunicorn.sh"
129
131
130
132
# 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
132
134
133
135
# Prepend proper environment variables for Python use.
134
136
export PATH=$BUILD_DIR /.heroku/python/bin:$BUILD_DIR /.heroku/vendor/bin:$PATH
@@ -274,7 +276,7 @@ bpwatch start dump_cache
274
276
bpwatch stop dump_cache
275
277
276
278
# Fin.
277
- if [[ ! " $DOCKER_BUILD " ]]; then
279
+ if [[ ! " $SKIP_MOVE_BUILD " ]]; then
278
280
279
281
bpwatch start appdir_commit
280
282
deep-rm $ORIG_BUILD_DIR
0 commit comments