2019-07-17 11:38:23 +00:00
|
|
|
|
using Microsoft.AspNetCore;
|
2019-07-09 18:39:29 +00:00
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
|
|
|
|
|
|
namespace PluralKit.API
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
InitUtils.Init();
|
|
|
|
|
CreateWebHostBuilder(args).Build().Run();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
|
|
|
|
WebHost.CreateDefaultBuilder(args)
|
|
|
|
|
.UseConfiguration(InitUtils.BuildConfiguration(args).Build())
|
2019-07-15 17:08:47 +00:00
|
|
|
|
.ConfigureKestrel(opts => { opts.ListenAnyIP(5000);})
|
2019-07-09 18:39:29 +00:00
|
|
|
|
.UseStartup<Startup>();
|
|
|
|
|
}
|
|
|
|
|
}
|