diff --git a/bin/compile b/bin/compile index 365365f00..4f1b8199f 100755 --- a/bin/compile +++ b/bin/compile @@ -178,16 +178,6 @@ sub-env $BIN_DIR/steps/collectstatic # ### Finalize # -# Set context environment variables. -set-env PATH '$HOME/.heroku/python/bin:$PATH' -set-env PYTHONUNBUFFERED true -set-env PYTHONHOME /app/.heroku/python -set-env LIBRARY_PATH /app/.heroku/vendor/lib:/app/.heroku/python/lib -set-env LD_LIBRARY_PATH '/app/.heroku/vendor/lib:/app/.heroku/python/lib:$LD_LIBRARY_PATH' -set-default-env LANG en_US.UTF-8 -set-default-env PYTHONHASHSEED random -set-default-env PYTHONPATH /app/ - # Experimental post_compile hook. bpwatch start post_compile @@ -214,3 +204,15 @@ bpwatch start anvil_appdir_commit bpwatch stop anvil_appdir_commit bpwatch stop compile + +# Set context environment variables. +set-env PATH '$HOME/.heroku/python/bin:$PATH' +set-env PYTHONUNBUFFERED true +set-env PYTHONHOME /app/.heroku/python +set-env LIBRARY_PATH /app/.heroku/vendor/lib:/app/.heroku/python/lib +set-env LD_LIBRARY_PATH '/app/.heroku/vendor/lib:/app/.heroku/python/lib:$LD_LIBRARY_PATH' +set-default-env LANG en_US.UTF-8 +set-default-env PYTHONHASHSEED random +set-default-env PYTHONPATH /app/ + + diff --git a/bin/utils b/bin/utils index a57d54e74..0e740b0b8 100755 --- a/bin/utils +++ b/bin/utils @@ -28,6 +28,7 @@ puts-warn() { # Usage: $ set-env key value set-env() { + export "$1=$(eval echo $2)" echo "export $1=$2" >> $PROFILE_PATH }