Files
chengshishouce/diary-system/start.sh
maoshen 3dbf1ff6ce feat: 添加日记系统
- 完整的 Django 后端 (diary app)
- 前端页面
- 部署脚本 (本地 + 云端)
- Nginx 配置
- 数据迁移工具
- 同步工具
2026-04-14 10:05:15 +00:00

26 lines
575 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 日记系统启动脚本
cd /root/.openclaw/workspace/diary-system/backend
# 安装依赖
pip3 install -r requirements.txt -q
# 数据库迁移
python3 manage.py makemigrations diary
python3 manage.py migrate
# 收集静态文件
python3 manage.py collectstatic --noinput
# 启动 Gunicorn
echo "🚀 启动日记系统..."
gunicorn diary_system.wsgi:application \
--bind 127.0.0.1:8002 \
--workers 3 \
--daemon
echo "✅ 日记系统已启动"
echo "📝 访问地址http://127.0.0.1:8001/"
echo "🔧 Admin: http://127.0.0.1:8001/admin/"