diff --git a/bin/compile b/bin/compile index 256806789..05a5c25f4 100755 --- a/bin/compile +++ b/bin/compile @@ -300,7 +300,7 @@ fi EOF if [[ ! -f "Procfile" ]]; then - bindir=$(composer config bin-dir) + bindir=$(composer config bin-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT echo "web: $bindir/heroku-$engine-apache2" > Procfile notice_inline "No Procfile, defaulting to 'web: $bindir/heroku-$engine-apache2'" fi diff --git a/bin/heroku-hhvm-apache2 b/bin/heroku-hhvm-apache2 index faff2f80d..5ebbfe6e5 100755 --- a/bin/heroku-hhvm-apache2 +++ b/bin/heroku-hhvm-apache2 @@ -72,7 +72,7 @@ export HEROKU_APP_DIR=$(pwd) export DOCUMENT_ROOT="$HEROKU_APP_DIR" # set a default port if none is given export PORT=${PORT:-$(( $RANDOM+1024 ))} -COMPOSER_VENDOR_DIR=$(composer config vendor-dir) +COMPOSER_VENDOR_DIR=$(composer config vendor-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT while getopts ":C:c:i:h" opt; do case $opt in diff --git a/bin/heroku-hhvm-nginx b/bin/heroku-hhvm-nginx index 984cbdab6..7d7a3b4d0 100755 --- a/bin/heroku-hhvm-nginx +++ b/bin/heroku-hhvm-nginx @@ -73,7 +73,7 @@ export HEROKU_APP_DIR=$(pwd) export DOCUMENT_ROOT="$HEROKU_APP_DIR" # set a default port if none is given export PORT=${PORT:-$(( $RANDOM+1024 ))} -COMPOSER_VENDOR_DIR=$(composer config vendor-dir) +COMPOSER_VENDOR_DIR=$(composer config vendor-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT while getopts ":C:c:i:h" opt; do case $opt in diff --git a/bin/heroku-php-apache2 b/bin/heroku-php-apache2 index 375a30e1e..36b303272 100755 --- a/bin/heroku-php-apache2 +++ b/bin/heroku-php-apache2 @@ -79,7 +79,7 @@ export HEROKU_APP_DIR=$(pwd) export DOCUMENT_ROOT="$HEROKU_APP_DIR" # set a default port if none is given export PORT=${PORT:-$(( $RANDOM+1024 ))} -COMPOSER_VENDOR_DIR=$(composer config vendor-dir) +COMPOSER_VENDOR_DIR=$(composer config vendor-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT while getopts ":C:c:F:f:i:h" opt; do case $opt in diff --git a/bin/heroku-php-nginx b/bin/heroku-php-nginx index 255acb53f..4cd1d963f 100755 --- a/bin/heroku-php-nginx +++ b/bin/heroku-php-nginx @@ -80,7 +80,7 @@ export HEROKU_APP_DIR=$(pwd) export DOCUMENT_ROOT="$HEROKU_APP_DIR" # set a default port if none is given export PORT=${PORT:-$(( $RANDOM+1024 ))} -COMPOSER_VENDOR_DIR=$(composer config vendor-dir) +COMPOSER_VENDOR_DIR=$(composer config vendor-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT while getopts ":C:c:F:f:i:h" opt; do case $opt in