Change cache configuration, ensure items in public dont have +x
This commit is contained in:
parent
9600a556ad
commit
4d86334839
5
init
5
init
@ -66,7 +66,8 @@ if [ "${role}" = "app" -a -e artisan ]; then
|
||||
find ${php} -type f -exec chmod 640 {} \;
|
||||
find ${php} -type d -exec chmod 750 {} \;
|
||||
chmod o+rx ${php}
|
||||
chmod -R o+rx ${php}/public
|
||||
chmod a+rx ${php}/artisan
|
||||
chmod -R o+r ${php}/public
|
||||
chown -R lamp:www-data ${php}
|
||||
chown -R www-data:www-data ${php}/storage ${php}/bootstrap ${php}/composer.*
|
||||
[ -e ${php}/vendor ] && chown -R www-data:www-data ${php}/vendor
|
||||
@ -99,7 +100,7 @@ if [ "${role}" = "app" -a -e artisan ]; then
|
||||
echo "* Lumen detected..."
|
||||
else
|
||||
echo "* Caching configuration..."
|
||||
su www-data -s /bin/sh -c "(php artisan config:cache && php artisan route:cache && php artisan view:cache)"
|
||||
su www-data -s /bin/sh -c "(php artisan optimize && php artisan view:cache)"
|
||||
fi
|
||||
|
||||
if [ -r .migrate ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user