File tree 3 files changed +19
-7
lines changed
3 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -64,27 +64,28 @@ $crankConfigPath = Join-Path `
64
64
65
65
$isLinuxApp = $CrankAgentVm -match ' \blinux\b'
66
66
67
- $functionAppRootPath = if ($isLinuxApp ) { " /home/$UserName /FunctionApps" } else { ' C:\FunctionApps' }
68
- $functionAppPath = Join-Path `
69
- - Path $functionAppRootPath `
70
- - ChildPath $FunctionApp
67
+ $functionAppPath = if ($isLinuxApp ) {
68
+ " /home/$UserName /FunctionApps/$FunctionApp "
69
+ } else {
70
+ " C:\FunctionApps\$FunctionApp "
71
+ }
71
72
72
73
$tmpPath = if ($isLinuxApp ) { " /tmp" } else { ' C:\Temp' }
73
74
$tmpLogPath = if ($isLinuxApp ) { " /tmp/functions/log" } else { ' C:\Temp\Functions\Log' }
74
75
75
76
if ($UseHttps ) {
76
77
$aspNetUrls = " http://localhost:5000;https://localhost:5001"
77
- $profile = " localHttps"
78
+ $profileName = " localHttps"
78
79
}
79
80
else {
80
81
$aspNetUrls = " http://localhost:5000"
81
- $profile = " local"
82
+ $profileName = " local"
82
83
}
83
84
84
85
$crankArgs =
85
86
' --config' , $crankConfigPath ,
86
87
' --scenario' , $Scenario ,
87
- ' --profile' , $profile ,
88
+ ' --profile' , $profileName ,
88
89
' --variable' , " CrankAgentVm=$CrankAgentVm " ,
89
90
' --variable' , " FunctionAppPath=`" $functionAppPath `" " ,
90
91
' --variable' , " TempPath=`" $tmpPath `" " ,
Original file line number Diff line number Diff line change
1
+ # !/usr/bin/env pwsh
2
+
1
3
param (
2
4
[string ]
3
5
$UserName = ' Functions'
@@ -17,6 +19,13 @@ if (-not (Test-Path $logsDir -PathType Container)) {
17
19
}
18
20
19
21
$logFileName = Join-Path - Path $logsDir - ChildPath " $ ( Get-Date - Format ' yyyy-MM-dd_HH-mm-ss' ) .log"
22
+ New-Item - Path $logFileName - ItemType File > $null
23
+
24
+ $stableLogFileName = Join-Path - Path $logsDir - ChildPath ' current.log'
25
+ if (Test-Path $stableLogFileName ) {
26
+ Remove-Item $stableLogFileName
27
+ }
28
+ New-Item - ItemType SymbolicLink - Path $stableLogFileName - Target $logFileName > $null
20
29
21
30
$invokeCrankAgentCommand = $IsWindows ? ' C:\dotnet-tools\crank-agent.exe' : " /home/$UserName /.dotnet/tools/crank-agent" ;
22
31
Original file line number Diff line number Diff line change
1
+ # !/usr/bin/env pwsh
2
+
1
3
[CmdletBinding ()]
2
4
param (
3
5
[bool ]$InstallDotNet = $true ,
You can’t perform that action at this time.
0 commit comments