1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00
bitwarden-server/util/Server/Program.cs
2017-08-15 12:03:55 -04:00

28 lines
563 B
C#

using Microsoft.AspNetCore.Hosting;
namespace Server
{
public class Program
{
public static void Main(string[] args)
{
var builder = new WebHostBuilder()
.UseKestrel()
.UseStartup<Startup>();
if(args.Length > 0)
{
builder.UseContentRoot(args[0]);
}
if(args.Length > 1)
{
builder.UseWebRoot(args[1]);
}
var host = builder.Build();
host.Run();
}
}
}