Skip to content

Commit

Permalink
commit success
Browse files Browse the repository at this point in the history
  • Loading branch information
maulayyacyber committed Oct 3, 2024
1 parent 3bef1e1 commit 92890f6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Envoy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
generate_app_key
handle_storage_directory
run_migrations
simulate_failure
{{-- simulate_failure --}}
run_optimize
update_symlinks
delete_git_metadata
Expand Down Expand Up @@ -191,9 +191,16 @@
sudo systemctl restart php8.3-fpm

# Hapus rilis yang gagal
echo 'get failed release'
latest_release=$(ls -dt {{ $releases_dir }}/* | head -n 1)

if [ -z "$latest_release" ]; then
echo "No latest release found. Rollback aborted."
exit 1
fi

echo "Removing failed release"
rm -rf $(dirname $current_release)
rm -rf $latest_release

echo "Rollback completed successfully"
@endtask

@endtask

0 comments on commit 92890f6

Please sign in to comment.