Skip to content

Commit 273ec9f

Browse files
authored
Update deploy.yml
1 parent d34ee0c commit 273ec9f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ jobs:
4949
# Restart Gunicorn service
5050
ssh -i ~/.ssh/id_rsa [email protected] << 'EOF'
5151
echo "Restarting hpc_dashboard Gunicorn service..."
52-
sudo systemctl restart hpc_dashboard
53-
echo "Gunicorn service restarted successfully."
54-
EOF
52+
if sudo systemctl restart hpc_dashboard; then
53+
echo "Gunicorn service restarted successfully."
54+
else
55+
echo "Failed to restart Gunicorn service." >&2
56+
exit 1
57+
fi

0 commit comments

Comments
 (0)