Skip to content

Commit 0d096b9

Browse files
committed
test fix
1 parent 5978a4b commit 0d096b9

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

.github/workflows/build-windows-installer.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,14 @@ jobs:
118118
$innoPath = "C:\Program Files (x86)\Inno Setup 6"
119119
echo "$innoPath" >> $env:GITHUB_PATH
120120
121-
- name: Copy LICENSE file
121+
- name: Verify LICENSE file exists
122122
shell: pwsh
123123
run: |
124-
if (Test-Path "LICENSE") {
125-
Copy-Item "LICENSE" -Destination "." -Force
126-
} else {
127-
# Create a basic LICENSE file if none exists
128-
"MIT License" | Out-File -FilePath "LICENSE" -Encoding UTF8
124+
if (-not (Test-Path "LICENSE")) {
125+
Write-Error "LICENSE file not found in repository root"
126+
exit 1
129127
}
128+
Write-Host "LICENSE file found successfully"
130129
131130
- name: Build Windows installer
132131
shell: pwsh

code/backend/Cleanuparr.Api/Program.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
builder.Configuration
1111
.AddJsonFile(Path.Combine(ConfigurationPathProvider.GetConfigPath(), "cleanuparr.json"), optional: true, reloadOnChange: true);
1212

13+
string? port = builder.Configuration.GetValue<string>("HTTP_PORTS");
14+
15+
if (string.IsNullOrEmpty(port) && !builder.Environment.IsDevelopment())
16+
{
17+
// If no port is configured, default to 11011
18+
Environment.SetEnvironmentVariable("HTTP_PORTS", "11011");
19+
}
20+
1321
builder.Services.AddResponseCompression(options =>
1422
{
1523
options.EnableForHttps = true;

0 commit comments

Comments
 (0)