代码拉取完成,页面将自动刷新
# Set encoding to UTF-8
$OutputEncoding = [System.Text.Encoding]::UTF8
Write-Host "开始构建前端应用..." -ForegroundColor Yellow
# 安装依赖
Write-Host "安装依赖..." -ForegroundColor Yellow
npm install
# 构建应用
Write-Host "构建应用..." -ForegroundColor Yellow
npm run build
# 检查构建结果
if (Test-Path -Path "dist") {
Write-Host "构建成功!" -ForegroundColor Green
# 重启容器
Write-Host "重启前端容器..." -ForegroundColor Yellow
cd ../..
docker-compose restart core-console
Write-Host "前端应用已更新,请访问 http://localhost:8080 查看变更" -ForegroundColor Green
} else {
Write-Host "构建失败!" -ForegroundColor Red
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。