Skip to content
Snippets Groups Projects
Commit 2e1638a1 authored by jxltom's avatar jxltom Committed by Kenneth Reitz
Browse files

Fix PYTHONPATH is not set when running collectstatic (#637)


* Fix PYTHONPATH is not set when running collectstatic

* update changelog

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

* Update CHANGELOG.md
parent e15f6894
No related branches found
No related tags found
No related merge requests found
# Python Buildpack Changelog # Python Buildpack Changelog
# 125
Set `PYTHONPATH` during collectstatic runs.
# 124 # 124
Update buildpack to automatically install [dev-packages] (Pipenv) during Heroku CI builds. Update buildpack to automatically install [dev-packages] (Pipenv) during Heroku CI builds.
......
...@@ -30,6 +30,7 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL ...@@ -30,6 +30,7 @@ if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALL
puts-step "$ python $MANAGE_FILE collectstatic --noinput" puts-step "$ python $MANAGE_FILE collectstatic --noinput"
# Run collectstatic, cleanup some of the noisy output. # 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 python "$MANAGE_FILE" collectstatic --noinput --traceback 2>&1 | sed '/^Post-processed/d;/^Copying/d;/^$/d' | indent
COLLECTSTATIC_STATUS="${PIPESTATUS[0]}" COLLECTSTATIC_STATUS="${PIPESTATUS[0]}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment