File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,24 @@ jobs:
5353 rm -rf bootstrap/cache
5454 ln -s $BASE/shared/bootstrap/cache bootstrap/cache
5555
56+ # Limpar cache ANTES de qualquer comando artisan
57+ echo "== Limpando cache antigo"
58+ rm -f $BASE/shared/bootstrap/cache/config.php
59+ rm -f $BASE/shared/bootstrap/cache/routes-v7.php
60+ rm -f $BASE/shared/bootstrap/cache/services.php
61+ rm -f $BASE/shared/bootstrap/cache/packages.php
62+
5663 php artisan storage:link || true
5764
5865 echo "== Permissões"
59- chown -R $USER:www-data $BASE/releases/$RELEASE
60- chmod -R 775 $BASE/releases/$RELEASE/storage
61- chmod -R 775 $BASE/releases/$RELEASE/bootstrap/cache
66+ chown -R $USER:www-data $BASE/releases/$RELEASE || true
67+ chmod -R 775 $BASE/releases/$RELEASE/storage || true
68+ chmod -R 775 $BASE/releases/$RELEASE/bootstrap/cache || true
69+
70+ php artisan config:clear || true
71+ php artisan route:clear || true
72+ php artisan view:clear || true
73+ php artisan cache:clear || true
6274
6375 echo "== Migrations"
6476 php artisan migrate --force || true
You can’t perform that action at this time.
0 commit comments