wanggang 1 year ago
parent
commit
a904e95527
  1. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs
  2. 1
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj
  3. 3
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Program.cs

@ -3,7 +3,7 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Serilog;
using Win.Sfs.SettleAccount.influxdb;
using Serilog.Settings.Configuration;
namespace Win.Sfs.SettleAccount;
@ -27,7 +27,7 @@ public class Program
//}
Log.Logger = new LoggerConfiguration()
.ReadFrom.Configuration(configuration)
.ReadFrom.Configuration(configuration, ConfigurationAssemblySource.AlwaysScanDllFiles)
.WriteTo.Async(c => c.Console())
.CreateLogger();

1
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/SettleAccount.HttpApi.Host.csproj

@ -5,7 +5,6 @@
<PropertyGroup>
<RootNamespace>Win.Sfs.SettleAccount</RootNamespace>
<PreserveCompilationReferences>true</PreserveCompilationReferences>
<UserSecretsId>SettleAccount-c2d31439-b723-48e2-b061-5ebd7aeb6010</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileContext>..\..\..\..</DockerfileContext>

3
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/start.cmd

@ -6,6 +6,9 @@ if %errorlevel% == 0 (
  exit
)
cd /d %~dp0
%1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit
start /b SettleAccount.HttpApi.Host.exe --urls http://*:16082

Loading…
Cancel
Save