Skip to content

Commit 469e8f2

Browse files
committed
graceful shutdown
1 parent 9926cda commit 469e8f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/deploy.yml

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
2525
# Stop the current process
2626
sudo pkill main || true
27+
sudo fuser -k 8080/tcp || true
28+
sleep 2
2729
2830
# Build the application
2931
go build -o main cmd/api/main.go

0 commit comments

Comments
 (0)