Changed composer optimisation

This commit is contained in:
Deon George 2020-01-15 15:47:25 +11:00
parent 680ab60f7a
commit 1850eb68c0

2
init
View File

@ -32,7 +32,7 @@ if [ "${role}" = "app" -a -e artisan ]; then
rm -f ${php}/bootstrap/cache/*.php rm -f ${php}/bootstrap/cache/*.php
chown -R www-data:www-data ${composer} chown -R www-data:www-data ${composer}
[ ! -d ${php}/vendor ] && mkdir -m 750 ${php}/vendor && chown www-data:www-data ${php}/vendor [ ! -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 ) su www-data -s /bin/sh -c "composer install --optimize-autoloader --no-dev" && ( test -e .composer.refresh && rm -f .composer.refresh )
fi fi
if [ -r .migrate ]; then if [ -r .migrate ]; then