File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
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()
Original file line number Diff line number Diff 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 ),
You can’t perform that action at this time.
0 commit comments