2017-08-29 12:14:10 +02:00
|
|
|
|
using Microsoft.AspNetCore;
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2017-02-23 09:34:00 -08:00
|
|
|
|
using System.IO;
|
2017-08-29 12:14:10 +02:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
2016-11-17 10:34:10 +01:00
|
|
|
|
|
|
|
|
|
namespace eShopConContainers.WebSPA
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2017-08-29 12:14:10 +02:00
|
|
|
|
BuildWebHost(args).Run();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IWebHost BuildWebHost(string[] args) =>
|
|
|
|
|
WebHost.CreateDefaultBuilder(args)
|
|
|
|
|
.UseStartup<Startup>()
|
2017-04-07 10:49:28 +02:00
|
|
|
|
.UseHealthChecks("/hc")
|
2016-11-17 10:34:10 +01:00
|
|
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
2017-08-29 12:14:10 +02:00
|
|
|
|
.ConfigureLogging((hostingContext, builder) =>
|
|
|
|
|
{
|
|
|
|
|
builder.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
|
|
|
|
|
builder.AddConsole();
|
|
|
|
|
builder.AddDebug();
|
|
|
|
|
})
|
|
|
|
|
.Build();
|
2016-11-17 10:34:10 +01:00
|
|
|
|
}
|
|
|
|
|
}
|