📦 配置虚拟环境和端口

变更:
- 添加 requirements.txt
- 更新 start.sh(使用虚拟环境)
- 更新 .gitignore(忽略 venv/和 node_modules/)
- 端口调整为 4000/9000
This commit is contained in:
2026-04-04 18:35:56 +08:00
parent 7be35039ed
commit fb740eb703
3 changed files with 68 additions and 52 deletions

32
.gitignore vendored
View File

@@ -5,31 +5,16 @@ __pycache__/
*.so
.Python
venv/
env/
ENV/
.venv
env/
*.egg-info/
dist/
build/
# Django
*.log
local_settings.py
db.sqlite3
media/
staticfiles/
static/
# Node
node_modules/
npm-debug.log
yarn-error.log
build/
# 环境变量
.env
.env.local
.env.*.local
*.pot
*.pyc
# IDE
.vscode/
@@ -42,12 +27,5 @@ build/
.DS_Store
Thumbs.db
# 测试
.pytest_cache/
.coverage
htmlcov/
# Docker
*.pid
*.seed
*.pid.lock
# Node
node_modules/