fix: restart taxbaik via systemd in ci
TaxBaik CI/CD / build-and-deploy (push) Failing after 49s

This commit is contained in:
2026-06-27 02:26:36 +09:00
parent a73503f96e
commit 56475a2ef5
+4 -4
View File
@@ -55,15 +55,15 @@ jobs:
ln -sfn "$DEPLOY_DIR" "$DEPLOY_HOME/taxbaik_active"
echo "✓ Deployed to $DEPLOY_DIR"
# systemd가 새 아티팩트를 다시 읽도록 프로세스 종료
# systemd가 새 아티팩트를 다시 읽도록 서비스 재시작
echo "=== Restarting service ==="
pkill -f "TaxBaik.Web.dll" || true
sleep 3
sudo systemctl restart taxbaik
sleep 5
echo "✓ Deployment complete"
- name: Verify deployment
run: |
sleep 5
sleep 10
HOME_STATUS=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:5001/taxbaik/ || echo "000")
LOGIN_STATUS=$(curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:5001/taxbaik/admin/login || echo "000")
ADMIN_TEST_PASSWORD="${{ secrets.TAXBAIK_ADMIN_TEST_PASSWORD }}"