Skip to content

Commit

Permalink
update envoy
Browse files Browse the repository at this point in the history
  • Loading branch information
maulayyacyber committed Oct 3, 2024
1 parent d7f3147 commit ac344b4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Envoy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
run_optimize
update_symlinks
delete_git_metadata
clean_failed_release
clean_old_releases
change_permission_owner
restart_php
Expand Down Expand Up @@ -113,6 +114,17 @@
rm -rf .git
@endtask

@task('clean_failed_release')
echo "Checking if the release {{ $release }} is linked to 'current'"

if [ "$(readlink {{ $app_dir }}/current)" != "{{ $new_release_dir }}" ]; then
echo "Release {{ $release }} is not linked. Deleting failed release."
rm -rf {{ $new_release_dir }}
else
echo "Release {{ $release }} is successfully linked."
fi
@endtask

@task('change_permission_owner')
echo 'Change Permission Owner'
cd {{ $new_release_dir }}
Expand Down

0 comments on commit ac344b4

Please sign in to comment.