From 9c2c626c120b64f522b935fef0e84675b3ff775f Mon Sep 17 00:00:00 2001 From: SuperJacky6 Date: Sat, 8 Aug 2026 17:06:52 +0800 Subject: [PATCH] upd --- .gitea/workflows/deploy-on-merge.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-on-merge.yml b/.gitea/workflows/deploy-on-merge.yml index 211b945..9ec287b 100644 --- a/.gitea/workflows/deploy-on-merge.yml +++ b/.gitea/workflows/deploy-on-merge.yml @@ -20,9 +20,13 @@ jobs: run: | ssh -i ~/.ssh/deploy_key ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} << EOF cd ${{ secrets.DEPLOY_PATH }} + git config --global --add safe.directory ${{ secrets.DEPLOY_PATH }} git pull origin main source venv/bin/activate pip install -r requirements.txt chown -R www:www . - kill -HUP $(pgrep -f "Hulumath-Web-Demo/gunicorn_conf.py" | head -1) + PID=\$(pgrep -f "Hulumath-Web-Demo/gunicorn_conf.py" | head -1) + if [ -n "\$PID" ]; then + kill -HUP \$PID + fi EOF \ No newline at end of file