IIS 发布目录改为项目外的独立目录 C:\F9WebAiTest-IIS
- deploy-iis.ps1 / update-iis.ps1 的发布路径由项目内 publish 改为 C:\F9WebAiTest-IIS - 站点物理路径已切换并验证,发布物与代码目录分离,便于测试与备份
This commit is contained in:
+2
-1
@@ -11,7 +11,8 @@ $logDir = Join-Path $PSScriptRoot '_runlog'
|
||||
New-Item -ItemType Directory -Force -Path $logDir | Out-Null
|
||||
try { Start-Transcript -Path (Join-Path $logDir 'deploy-iis.log') -Force -ErrorAction Stop | Out-Null } catch { }
|
||||
|
||||
$publishDir = 'C:\Users\32453\CodeBuddy\20260825142915\publish'
|
||||
# 发布物放在项目外的独立目录,与代码分离(便于测试与备份)
|
||||
$publishDir = 'C:\F9WebAiTest-IIS'
|
||||
$siteName = 'F9WebAiTest'
|
||||
$appPoolName = 'F9WebAiTest'
|
||||
$preferredPort = 80
|
||||
|
||||
+2
-1
@@ -10,7 +10,8 @@ $root = 'C:\Users\32453\CodeBuddy\20260825142915'
|
||||
$webDir = Join-Path $root 'web'
|
||||
$distDir = Join-Path $webDir 'dist'
|
||||
$apiProject = Join-Path $root 'backend\F9WebAiTest.Api'
|
||||
$publishDir = Join-Path $root 'publish'
|
||||
# 发布物放在项目外的独立目录,与代码分离(便于测试与备份)
|
||||
$publishDir = 'C:\F9WebAiTest-IIS'
|
||||
$appPoolName = 'F9WebAiTest'
|
||||
$siteName = 'F9WebAiTest'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user