Change profile name, pring startup message

This commit is contained in:
BtbN
2019-06-17 18:20:46 +02:00
parent 6bacd7bfac
commit 01071c4d93
3 changed files with 5 additions and 1 deletions

View File

@@ -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();
}

View File

@@ -18,6 +18,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<SelfContained>false</SelfContained>
<_IsPortable>true</_IsPortable>
<publishUrl>bin\Release\netcoreapp2.2\publish\</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
<DeleteExistingFiles>True</DeleteExistingFiles>
</PropertyGroup>
</Project>

View File

@@ -40,11 +40,13 @@ namespace ClanServer
services
.AddDbContext<ClanServerContext>(options =>
{
#if DEBUG
if (CurEnv.IsDevelopment())
{
options.UseLoggerFactory(LogFactory);
options.EnableSensitiveDataLogging();
}
#endif
options.UseSqlite("Data Source=clanserver.db");
});