mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
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:
@@ -1,5 +1,9 @@
|
||||
# Python Buildpack Changelog
|
||||
|
||||
# 126
|
||||
|
||||
Bugfixes.
|
||||
|
||||
# 125
|
||||
|
||||
Bugfixes.
|
||||
|
||||
@@ -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]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user