mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-07 05:31:13 -07:00
35 lines
811 B
C#
35 lines
811 B
C#
using System;
|
|
|
|
using Microsoft.Owin.Hosting;
|
|
|
|
using Nancy.Hosting.Self;
|
|
|
|
using RequestPlex.Core;
|
|
|
|
namespace RequestPlex.UI
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var uri = "http://localhost:3579/";
|
|
var s = new Setup();
|
|
s.SetupDb();
|
|
|
|
var service = new SettingsService();
|
|
var settings = service.GetSettings();
|
|
|
|
if (settings != null)
|
|
{
|
|
uri = $"http://localhost:{settings.Port}";
|
|
}
|
|
|
|
using (WebApp.Start<Startup>(uri))
|
|
{
|
|
Console.WriteLine("Running on {0}", uri);
|
|
Console.WriteLine("Press enter to exit");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
}
|
|
}
|