aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Program.cs
blob: 6982da921449dd75bea2e13063b2b572956b57c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace DevHive.Web
{
	public class Program
	{
		private const int HTTP_PORT = 5000;

		public static void Main(string[] args)
		{
			CreateHostBuilder(args).Build().Run();
		}

		public static IHostBuilder CreateHostBuilder(string[] args) =>
			Host.CreateDefaultBuilder(args)
				.ConfigureWebHostDefaults(webBuilder =>
				{
					webBuilder.ConfigureKestrel(opt => opt.ListenLocalhost(HTTP_PORT));
					webBuilder.UseStartup<Startup>();
				});
	}
}