From 48e707cd6476182fe029c4e61d2d205b61db5b67 Mon Sep 17 00:00:00 2001 From: AnthonyDuan Date: Sat, 22 Nov 2025 22:21:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(setup):=20=E9=A2=84=E5=88=9B=E5=BB=BA=20/sr?= =?UTF-8?q?v/taiko-web/public/songs=20=E5=B9=B6=E5=9C=A8=20systemd=20?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=20TAIKO=5FWEB=5FSONGS=5FDIR=20=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.sh b/setup.sh index 6a4fd28..070c0ff 100644 --- a/setup.sh +++ b/setup.sh @@ -59,6 +59,9 @@ mkdir -p /srv/taiko-web SRC_DIR=$(cd "$(dirname "$0")" && pwd) rsync -a --delete --exclude '.git' --exclude '.venv' "$SRC_DIR/" /srv/taiko-web/ +echo "预创建歌曲存储目录..." +mkdir -p /srv/taiko-web/public/songs + echo "创建并安装 Python 虚拟环境..." python3 -m venv /srv/taiko-web/.venv /srv/taiko-web/.venv/bin/pip install -U pip @@ -80,6 +83,7 @@ After=network.target mongod.service redis-server.service Type=simple WorkingDirectory=/srv/taiko-web Environment=PYTHONUNBUFFERED=1 +Environment=TAIKO_WEB_SONGS_DIR=/srv/taiko-web/public/songs ExecStart=/srv/taiko-web/.venv/bin/gunicorn -b 0.0.0.0:80 app:app Restart=always User=www-data