From 117dcff4e10a83dd62874141e05d37fca90fe832 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz <me@kennethreitz.com> Date: Wed, 19 Dec 2012 21:17:49 -0500 Subject: [PATCH] collectstatic always --- bin/detect | 9 +-------- bin/steps/{django => collectstatic} | 2 -- 2 files changed, 1 insertion(+), 10 deletions(-) rename bin/steps/{django => collectstatic} (89%) diff --git a/bin/detect b/bin/detect index c5db3d3d..818ed74e 100755 --- a/bin/detect +++ b/bin/detect @@ -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 diff --git a/bin/steps/django b/bin/steps/collectstatic similarity index 89% rename from bin/steps/django rename to bin/steps/collectstatic index b144212e..c041c6e6 100644 --- a/bin/steps/django +++ b/bin/steps/collectstatic @@ -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} -- GitLab