Phase 0 评审修复:init.sh 跨平台兼容 + production SECRET_KEY 强制校验 + 文档同步
This commit is contained in:
@@ -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)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user