Skip to content

Commit ffb89fe

Browse files
committed
improvements to buildpack output
1 parent 45b00e3 commit ffb89fe

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

bin/steps/collectstatic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ bpwatch start collectstatic # metrics collection
2727
if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALLED" ]; then
2828
set +e
2929

30-
echo "-----> $ python $MANAGE_FILE collectstatic --noinput"
30+
puts-cmd "python $MANAGE_FILE collectstatic --noinput"
3131

3232
# Run collectstatic, cleanup some of the noisy output.
3333
python $MANAGE_FILE collectstatic --noinput --traceback 2>&1 | sed '/^Post-processed/d;/^Copying/d;/^$/d' | indent

bin/steps/pip-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Install dependencies with Pip.
2-
puts-step "Installing dependencies with pip"
2+
puts-cmd "pip install -r requirements.txt"
33

44
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
55
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first

bin/utils

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ cleanup() {
2626
sed -e 's/\.\.\.\+/.../g' | sed -e '/already satisfied/Id' | sed -e '/Overwriting/Id' | sed -e '/python executable/Id' | sed -e '/no previously-included files/Id'
2727
}
2828

29+
# Buildpack Indented line.
30+
puts-line() {
31+
echo " $@"
32+
}
33+
2934
# Buildpack Steps.
3035
puts-step() {
3136
echo "-----> $@"
@@ -36,6 +41,11 @@ puts-warn() {
3641
echo " ! $@"
3742
}
3843

44+
# Buildpack Commands.
45+
puts-cmd() {
46+
echo " $ $@"
47+
}
48+
3949
# Usage: $ set-env key value
4050
set-env() {
4151
echo "export $1=$2" >> $PROFILE_PATH

0 commit comments

Comments
 (0)