第一阶段任务,相关数据库定义。
IT-0 verify / verify (push) Canceled after 0s

This commit is contained in:
zfjia committed 2026-11-10 14:52:54 +08:00
1 parent 329e27b515
commit 8ffeb59dd4
33 files changed
+3427 -111

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# 本地启动脚本:从被 .gitignore 排除的 .env 加载凭据,仓库内不含任何真实口令。
# 用法:复制 dev/.env.example 为 dev/.env 并填写,然后执行本脚本。
$ErrorActionPreference = 'Stop'
$envFile = Join-Path $PSScriptRoot '.env'
if (-not (Test-Path $envFile)) {
throw "缺少 $envFile,请先从 .env.example 复制并填写本机凭据"
}
Get-Content -LiteralPath $envFile | ForEach-Object {
$line = $_.Trim()
if ($line -eq '' -or $line.StartsWith('#')) { return }
if ($line -match '^([A-Za-z0-9_]+)\s*=\s*(.*)$') {
[Environment]::SetEnvironmentVariable($Matches[1], $Matches[2], 'Process')
}
}
foreach ($required in @('APT_DB_PASSWORD', 'APT_TOKEN_SECRET')) {
if (-not [Environment]::GetEnvironmentVariable($required, 'Process')) {
throw "缺少必需环境变量 $required(请在 .env 中填写)"
}
}
$backend = Join-Path (Split-Path $PSScriptRoot -Parent) 'RuoYi-Vue-master'
Set-Location $backend
& mvn -pl ruoyi-admin -am spring-boot:run