Skip to content

Commit 94a103b

Browse files
committed
Fixing deploy
1 parent 7e51660 commit 94a103b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
--exclude .npm \
4949
--exclude .git \
5050
--exclude tests \
51-
--exclude database/backups \
51+
--exclude storage/backups \
5252
--exclude storage/debugbar \
5353
--exclude .env
5454
@@ -57,7 +57,7 @@ jobs:
5757
ssh ${{ env.SERVER_USER }}@${{ env.SERVER_IP }} "cd ${{ env.DEPLOY_DIR }} && \
5858
export PATH=/usr/local/bin:\$PATH && \
5959
php8.3 artisan migrate --force && \
60-
php8.3 artisan optimize
60+
php8.3 artisan optimize"
6161
6262
- name: Notify Slack on Success
6363
if: success()

app/Console/Commands/PerformDatabaseBackupCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ public function handle(): void
3030
{
3131
$filename = 'backup-'.now()->timestamp.'.sql';
3232

33-
File::copy(database_path('database.sqlite'), database_path('backups/'.$filename));
33+
File::copy(database_path('database.sqlite'), storage_path('backups/'.$filename));
3434

35-
$glob = File::glob(database_path('backups/*.sql'));
35+
$glob = File::glob(storage_path('storage/backups/*.sql'));
3636

3737
collect($glob)->sort()->reverse()->slice(4)->filter(
3838
fn (mixed $backup): bool => is_string($backup),

0 commit comments

Comments
 (0)