diff --git a/README.md b/README.md index 175238f47..e4ade0bba 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ TBC #Installation -TBC +Just run the .exe! (Use mono if not on Windows `mono RequestPlex.UI.exe`) #Configuration diff --git a/RequestPlex.UI/Program.cs b/RequestPlex.UI/Program.cs index 028f03f4d..e6ec8423c 100644 --- a/RequestPlex.UI/Program.cs +++ b/RequestPlex.UI/Program.cs @@ -12,10 +12,13 @@ namespace RequestPlex.UI { static void Main(string[] args) { + var uri = "http://localhost:3579/"; + var s = new Setup(); + s.SetupDb(); + var service = new SettingsService(); var settings = service.GetSettings(); - var uri = "http://localhost:3579/"; if (settings != null) { uri = $"http://localhost:{settings.Port}"; diff --git a/RequestPlex.UI/Startup.cs b/RequestPlex.UI/Startup.cs index 40a5d265c..2402a70b7 100644 --- a/RequestPlex.UI/Startup.cs +++ b/RequestPlex.UI/Startup.cs @@ -1,7 +1,5 @@ using Owin; -using RequestPlex.Core; - namespace RequestPlex.UI { public class Startup @@ -9,9 +7,6 @@ namespace RequestPlex.UI public void Configuration(IAppBuilder app) { app.UseNancy(); - - var s = new Setup(); - s.SetupDb(); } } }