default to user python path for collectstatic runs (#655)

* default to user python path for collectstatic runs

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* bugfixes

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>

* fix

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2018-03-13 20:59:11 -04:00
committed by GitHub
parent 5f8360cba8
commit 7d975e74a9
2 changed files with 6 additions and 1 deletions
+4
View File
@@ -1,5 +1,9 @@
# Python Buildpack Changelog
# 126
Bugfixes.
# 125
Bugfixes.
+2 -1
View File
@@ -30,7 +30,8 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL
puts-step "$ python $MANAGE_FILE collectstatic --noinput"
# Run collectstatic, cleanup some of the noisy output.
export PYTHONPATH=.
PYTHONPATH=${PYTHONPATH:-.}
export PYTHONPATH
python "$MANAGE_FILE" collectstatic --noinput --traceback 2>&1 | sed '/^Post-processed/d;/^Copying/d;/^$/d' | indent
COLLECTSTATIC_STATUS="${PIPESTATUS[0]}"