Changed composer optimisation
This commit is contained in:
parent
680ab60f7a
commit
1850eb68c0
2
init
2
init
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user