Make vendor dir for laravel projects if it doesnt exist

This commit is contained in:
Deon George 2020-01-15 14:59:07 +11:00
parent 8e23589589
commit ee45868bf9

1
init
View File

@ -30,6 +30,7 @@ if [ "${role}" = "app" -a -e artisan ]; then
if [[ -r composer.lock && ( -e .composer.refresh || ! -d vendor ) ]]; then
rm -f ${php}/bootstrap/cache/*.php
chown -R www-data:www-data ${composer}
[ ! -d ${php}/vendor ] && mkdir -m 750 ${php}/vendor && chown www-data:www-data ${php}/vendor
su www-data -s /bin/sh -c "composer install" && ( test -e .composer.refresh && rm -f .composer.refresh )
fi