Skip to content

Commit 51fef17

Browse files
committed
chore: Adicionar carregamento do NVM ao workflow de deploy.
1 parent d3b9313 commit 51fef17

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)