Initial commit: WordLoop 单词学习应用

Vue 前端 + FastAPI 后端,含部署脚本与词典数据。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
John
2026-06-04 14:30:53 -07:00
commit bd7635986a
66 changed files with 5495 additions and 0 deletions
@@ -0,0 +1,13 @@
[Unit]
Description=Cloudflare Tunnel for WordLoop (w.tkmind.cn)
After=network-online.target nginx.service
Wants=network-online.target
[Service]
Type=notify
ExecStart=/usr/local/bin/cloudflared tunnel --config /var/www/wordloop/deploy/cloudflared/config.yml run
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,15 @@
[Unit]
Description=WordLoop FastAPI backend
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/wordloop/backend
EnvironmentFile=/root/wordloop/backend/.env
ExecStart=/root/wordloop/backend/venv/bin/uvicorn main:app --host 127.0.0.1 --port 18004
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
+15
View File
@@ -0,0 +1,15 @@
[Unit]
Description=WordLoop FastAPI backend
After=network.target mysql.service
[Service]
Type=simple
User=www-data
WorkingDirectory=/var/www/wordloop/backend
EnvironmentFile=/var/www/wordloop/backend/.env
ExecStart=/var/www/wordloop/backend/venv/bin/uvicorn main:app --host 127.0.0.1 --port 18004
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target