Make vendor dir for laravel projects if it doesnt exist
This commit is contained in:
parent
8e23589589
commit
ee45868bf9
1
init
1
init
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user