mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
Fix PYTHONPATH is not set when running collectstatic (#637)
* Fix PYTHONPATH is not set when running collectstatic * update changelog Signed-off-by: Kenneth Reitz <me@kennethreitz.org> * Update CHANGELOG.md
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
# Python Buildpack Changelog
|
||||
|
||||
# 125
|
||||
|
||||
Set `PYTHONPATH` during collectstatic runs.
|
||||
|
||||
# 124
|
||||
|
||||
Update buildpack to automatically install [dev-packages] (Pipenv) during Heroku CI builds.
|
||||
|
||||
@@ -30,6 +30,7 @@ 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=.
|
||||
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