mirror of
https://github.com/bitwarden/server.git
synced 2024-11-22 12:15:36 +01:00
28 lines
563 B
C#
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|