Skip to content

Commit 9c296bf

Browse files
atualizando script de deploy
1 parent a92e3fb commit 9c296bf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/scripts/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo "Configurações Laravel..."
2525
php artisan key:generate --ansi
2626
php artisan storage:link
2727
ln -s public public_html
28-
php artisan migrate
28+
php artisan migrate --force
2929

3030

3131
echo "Deploy finalizado!"

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: markdownEditor CI
2-
on:
2+
on:
33
push:
44
branches:
55
- main
@@ -20,13 +20,15 @@ jobs:
2020
port: ${{ secrets.REMOTE_PORT }}
2121
# key: ${{ secrets.SERVER_SSH_KEY }}
2222
script: |
23+
echo "(php artisan down) || true"
2324
echo "running pull..."
2425
cd domains/${{ secrets.APP_URL }}/
2526
git pull
2627
echo "done!"
2728
echo "running deploy.sh..."
2829
chmod +x .github/scripts/deploy.sh
2930
./.github/scripts/deploy.sh
31+
php artisan up
3032
echo "done!"
3133
3234

0 commit comments

Comments
 (0)