Skip to content

Commit

Permalink
push biasa
Browse files Browse the repository at this point in the history
  • Loading branch information
maulayyacyber committed Oct 3, 2024
1 parent c8dba77 commit 8372e41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 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 @@ -159,7 +159,7 @@

# Ambil rilis sebelumnya
previous_release=$(ls -dt {{ $releases_dir }}/* | sed -n '2p')

if [ -z "$previous_release" ]; then
echo "No previous release found. Rollback aborted."
exit 1
Expand Down Expand Up @@ -192,7 +192,8 @@

# Hapus rilis yang gagal
echo "Removing failed release"
rm -rf $current_release
rm -rf $(dirname $current_release)

echo "Rollback completed successfully"
@endtask

0 comments on commit 8372e41

Please sign in to comment.