Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/README.md
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "tickflow-stock-panel-backend"
version = "0.1.88"
description = "A 股选股 + 监控 + 回测面板 — TickFlow 适配"
readme = "../README.md"
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
dependencies = [
Expand Down
13 changes: 12 additions & 1 deletion backend/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ free_port backend "$BACKEND_PORT"
free_port frontend "$FRONTEND_PORT"

# ===== 3. 依赖安装 =====
if [ ! -d "$BACKEND_DIR/.venv" ] || [ "${#BACKEND_EXTRA_ARGS[@]}" -gt 0 ]; then
if [ "${#BACKEND_EXTRA_ARGS[@]}" -gt 0 ]; then
# 在 set -u 下,空数组 ${#ARR[@]} 仍会触发 unbound。
# 用 ${#BACKEND_EXTRA_ARGS[@]:-0} 兜底,兼容 bash 3.2/4.x。
if [ ! -d "$BACKEND_DIR/.venv" ] || [ "${#BACKEND_EXTRA_ARGS[@]:-0}" -gt 0 ]; then
if [ "${#BACKEND_EXTRA_ARGS[@]:-0}" -gt 0 ]; then
info "同步后端 Python 依赖,extras: $BACKEND_EXTRAS"
else
info "后端首次启动 — 安装 Python 依赖(约 1-2 分钟)..."
Expand Down