Skip to content
Snippets Groups Projects
Commit ffb89feb authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

improvements to buildpack output

parent 45b00e32
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ bpwatch start collectstatic # metrics collection ...@@ -27,7 +27,7 @@ bpwatch start collectstatic # metrics collection
if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALLED" ]; then if [ ! "$DISABLE_COLLECTSTATIC" ] && [ -f "$MANAGE_FILE" ] && [ "$DJANGO_INSTALLED" ]; then
set +e set +e
echo "-----> $ python $MANAGE_FILE collectstatic --noinput" puts-cmd "python $MANAGE_FILE collectstatic --noinput"
# Run collectstatic, cleanup some of the noisy output. # Run collectstatic, cleanup some of the noisy output.
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
......
# Install dependencies with Pip. # Install dependencies with Pip.
puts-step "Installing dependencies with pip" puts-cmd "pip install -r requirements.txt"
[ ! "$FRESH_PYTHON" ] && bpwatch start pip_install [ ! "$FRESH_PYTHON" ] && bpwatch start pip_install
[ "$FRESH_PYTHON" ] && bpwatch start pip_install_first [ "$FRESH_PYTHON" ] && bpwatch start pip_install_first
......
...@@ -26,6 +26,11 @@ cleanup() { ...@@ -26,6 +26,11 @@ cleanup() {
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' 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'
} }
# Buildpack Indented line.
puts-line() {
echo " $@"
}
# Buildpack Steps. # Buildpack Steps.
puts-step() { puts-step() {
echo "-----> $@" echo "-----> $@"
...@@ -36,6 +41,11 @@ puts-warn() { ...@@ -36,6 +41,11 @@ puts-warn() {
echo " ! $@" echo " ! $@"
} }
# Buildpack Commands.
puts-cmd() {
echo " $ $@"
}
# Usage: $ set-env key value # Usage: $ set-env key value
set-env() { set-env() {
echo "export $1=$2" >> $PROFILE_PATH echo "export $1=$2" >> $PROFILE_PATH
......
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