Skip to content

Commit

Permalink
Add appsettings.json
Browse files Browse the repository at this point in the history
  • Loading branch information
deleteLater committed Jul 21, 2023
1 parent c3ae2e6 commit cffeca8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ The first version of FeatBit Agent.

# v1.0.1 ( 2023-07-21 )

Remove featbit.ini config
Replace featbit.ini with appsettings.json.
10 changes: 10 additions & 0 deletions src/Api/appsettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore": "Warning"
}
},
"AllowedHosts": "*"
}
7 changes: 3 additions & 4 deletions src/Api/publish.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$publishBaseDir = 'publish'
$publishBaseDir = '../../publish'
$platforms = @('win-x64', 'linux-x64', 'osx-x64')

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

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

0 comments on commit cffeca8

Please sign in to comment.