Skip to content

Commit cffeca8

Browse files
committed
Add appsettings.json
1 parent c3ae2e6 commit cffeca8

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ The first version of FeatBit Agent.
44

55
# v1.0.1 ( 2023-07-21 )
66

7-
Remove featbit.ini config
7+
Replace featbit.ini with appsettings.json.

src/Api/appsettings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Logging": {
3+
"LogLevel": {
4+
"Default": "Information",
5+
"Microsoft.AspNetCore": "Warning",
6+
"Microsoft.EntityFrameworkCore": "Warning"
7+
}
8+
},
9+
"AllowedHosts": "*"
10+
}

src/Api/publish.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$publishBaseDir = 'publish'
1+
$publishBaseDir = '../../publish'
22
$platforms = @('win-x64', 'linux-x64', 'osx-x64')
33

44
if (-not(Test-Path -Path $publishBaseDir -PathType Container))
@@ -13,10 +13,9 @@ foreach ($platform in $platforms)
1313
dotnet publish -r $platform -c Release -p:DebugType=none --self-contained true -o "$publishBaseDir/$platform"
1414
if ($LASTEXITCODE -ne 0)
1515
{
16+
Write-Error "Failed to publish the application for platform $platform"
1617
exit 1
1718
}
1819

19-
Set-Location "$publishBaseDir/$platform"
20-
Compress-Archive -Path * -DestinationPath "../featbit_agent_${platform}_${version}.zip"
21-
Set-Location ../../
20+
Compress-Archive -Path "$publishBaseDir/$platform/*" -DestinationPath "$publishBaseDir/featbit_agent_${platform}_${version}.zip"
2221
}

0 commit comments

Comments
 (0)