完善跨平台回放与实时状态更新

This commit is contained in:
admin committed 2026-08-17 13:16:12 +08:00
1 parent a493ef2309
commit 3060828774
11 files changed
+244 -37

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# Deployment
All runtime paths are resolved relative to the repository by default and can be overridden with environment variables.
- `LS_DATABASE_URL`: SQLAlchemy database URL.
- `LS_REPLAY_MEDIA_DIR`: server-local directory containing replay files.
## Linux and macOS
Run `./start.sh`. The script resolves its own directory and does not depend on `/workspace`.
## Windows
1. Create a virtual environment with `py -m venv backend\.venv`.
2. Install dependencies with `backend\.venv\Scripts\pip install -r backend\requirements.txt`.
3. Optionally set `LS_REPLAY_MEDIA_DIR` to an absolute media directory.
4. Run `powershell -ExecutionPolicy Bypass -File .\start.ps1`.
5. In another terminal, run `npm install` and `npm run dev` from `frontend`.
Replay records store paths relative to `LS_REPLAY_MEDIA_DIR`. Absolute paths and parent-directory traversal are rejected.