From c685de645a4d007a56319525e4070ec99ac0397d Mon Sep 17 00:00:00 2001 From: BtbN Date: Mon, 17 Jun 2019 18:20:46 +0200 Subject: [PATCH] Change profile name, pring startup message --- ClanServer/Program.cs | 2 ++ .../{FolderProfile.pubxml => Win64Release.pubxml} | 2 +- ClanServer/Startup.cs | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) rename ClanServer/Properties/PublishProfiles/{FolderProfile.pubxml => Win64Release.pubxml} (94%) diff --git a/ClanServer/Program.cs b/ClanServer/Program.cs index 4163428..310bf1e 100644 --- a/ClanServer/Program.cs +++ b/ClanServer/Program.cs @@ -18,6 +18,8 @@ namespace ClanServer var builder = CreateWebHostBuilder(args); var host = builder.Build(); + Console.WriteLine($"Server URL: http://localhost:{Startup.Port}/core"); + host.Run(); } diff --git a/ClanServer/Properties/PublishProfiles/FolderProfile.pubxml b/ClanServer/Properties/PublishProfiles/Win64Release.pubxml similarity index 94% rename from ClanServer/Properties/PublishProfiles/FolderProfile.pubxml rename to ClanServer/Properties/PublishProfiles/Win64Release.pubxml index 9e74a4e..67738a8 100644 --- a/ClanServer/Properties/PublishProfiles/FolderProfile.pubxml +++ b/ClanServer/Properties/PublishProfiles/Win64Release.pubxml @@ -18,6 +18,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt false <_IsPortable>true bin\Release\netcoreapp2.2\publish\ - False + True \ No newline at end of file diff --git a/ClanServer/Startup.cs b/ClanServer/Startup.cs index a2d0826..803d5df 100644 --- a/ClanServer/Startup.cs +++ b/ClanServer/Startup.cs @@ -40,11 +40,13 @@ namespace ClanServer services .AddDbContext(options => { +#if DEBUG if (CurEnv.IsDevelopment()) { options.UseLoggerFactory(LogFactory); options.EnableSensitiveDataLogging(); } +#endif options.UseSqlite("Data Source=clanserver.db"); });