a3eb5c7b2d
从百度网盘 /apps/bypy/dofile/ 下载的完整项目结构,包含: - dofile/: Flask 后端(端口 5000)+ 静态前端(端口 6002) - officefile/: 项目相关文档 - .gitignore: Python venv / 日志 / 缓存 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
25 lines
336 B
Bash
25 lines
336 B
Bash
#!/bin/bash
|
|
# 初始化数据库脚本
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# 检查虚拟环境
|
|
if [ -d ".venv" ]; then
|
|
source .venv/bin/activate
|
|
python init_data.py
|
|
else
|
|
echo "Virtual environment not found. Please run: python3 -m venv .venv"
|
|
echo "Then install dependencies: pip install -r requirements.txt"
|
|
exit 1
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|