diff --git a/start b/start index 87cbfd3..0d1cf66 100755 --- a/start +++ b/start @@ -15,7 +15,7 @@ if [ "${role}" = "app" ]; then if [ "${env}" != "local" -a -r "artisan" ]; then # See if we need to refresh our dependancies if [[ -r composer.lock && ( -e .composer.refresh || ! -d vendor ) ]]; then - composer install && ( test -e .composer.refresh && rm -f .composer.refresh ) + su www-data -s /bin/sh -c "composer install" && ( test -e .composer.refresh && rm -f .composer.refresh ) fi echo "Caching configuration..."