Phase 0 评审修复:init.sh 跨平台兼容 + production SECRET_KEY 强制校验 + 文档同步

This commit is contained in:
ila
2026-07-06 18:04:10 +08:00
parent bb7b745666
commit ded4fefef2
9 changed files with 262 additions and 26 deletions
+8 -3
View File
@@ -8,9 +8,14 @@
$ErrorActionPreference = "Stop"
Set-Location -Path $PSScriptRoot
$InstallCmd = ".venv/bin/pip install -r requirements.txt"
$VerifyCmd = ".venv/bin/python manage.py check"
$StartCmd = ".venv/bin/python manage.py runserver"
$InstallCmd = ".venv/bin/pip3.12 install -r requirements.txt"
$VerifyCmd = ".venv/bin/python3.12 manage.py check"
$StartCmd = ".venv/bin/python3.12 manage.py runserver"
if (-not (Test-Path ".venv/bin/python3.12") -and -not (Test-Path ".venv/bin/python3.12.exe")) {
Write-Error "venv 不存在或损坏,请先运行: python3.12 -m venv .venv"
exit 1
}
Write-Host "==> 当前目录: $($PWD.Path)"