mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
collectstatic always
This commit is contained in:
+1
-8
@@ -19,11 +19,4 @@ if [ ! -f $BUILD_DIR/requirements.txt ] && [ ! -f $BUILD_DIR/setup.py ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# `Python/Django` if `**/settings.py` is present.
|
||||
#
|
||||
# Otherwise, `Python`.
|
||||
|
||||
|
||||
MANAGE_FILE=$(find $BUILD_DIR/. -maxdepth 3 -type f -name 'manage.py' | head -1)
|
||||
|
||||
[ -n "$MANAGE_FILE" ] && grep -Fiq "django" $MANAGE_FILE && echo Python/Django || echo Python
|
||||
echo Python
|
||||
|
||||
@@ -6,8 +6,6 @@ indent() {
|
||||
[ $(uname) == "Darwin" ] && sed -l "$RE" || sed -u "$RE"
|
||||
}
|
||||
|
||||
SETTINGS_FILE=$(find . -maxdepth 3 -type f -name 'settings.py' | head -1)
|
||||
PROJECT=$(dirname $SETTINGS_FILE)
|
||||
MANAGE_FILE=$(find . -maxdepth 3 -type f -name 'manage.py' | head -1)
|
||||
MANAGE_FILE=${MANAGE_FILE:2}
|
||||
|
||||
Reference in New Issue
Block a user