We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d34ee0c commit 273ec9fCopy full SHA for 273ec9f
.github/workflows/deploy.yml
@@ -49,6 +49,9 @@ jobs:
49
# Restart Gunicorn service
50
ssh -i ~/.ssh/id_rsa [email protected] << 'EOF'
51
echo "Restarting hpc_dashboard Gunicorn service..."
52
- sudo systemctl restart hpc_dashboard
53
- echo "Gunicorn service restarted successfully."
54
- EOF
+ if sudo systemctl restart hpc_dashboard; then
+ echo "Gunicorn service restarted successfully."
+ else
55
+ echo "Failed to restart Gunicorn service." >&2
56
+ exit 1
57
+ fi
0 commit comments