mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-07 21:51:13 -07:00
Removed the setup code out of the startup, since we attemtp to connect to the DB before that.
This commit is contained in:
parent
e0347d6bbc
commit
81c492aa14
3 changed files with 5 additions and 7 deletions
|
@ -20,7 +20,7 @@ TBC
|
||||||
|
|
||||||
#Installation
|
#Installation
|
||||||
|
|
||||||
TBC
|
Just run the .exe! (Use mono if not on Windows `mono RequestPlex.UI.exe`)
|
||||||
|
|
||||||
#Configuration
|
#Configuration
|
||||||
|
|
||||||
|
|
|
@ -12,10 +12,13 @@ namespace RequestPlex.UI
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
var uri = "http://localhost:3579/";
|
||||||
|
var s = new Setup();
|
||||||
|
s.SetupDb();
|
||||||
|
|
||||||
var service = new SettingsService();
|
var service = new SettingsService();
|
||||||
var settings = service.GetSettings();
|
var settings = service.GetSettings();
|
||||||
|
|
||||||
var uri = "http://localhost:3579/";
|
|
||||||
if (settings != null)
|
if (settings != null)
|
||||||
{
|
{
|
||||||
uri = $"http://localhost:{settings.Port}";
|
uri = $"http://localhost:{settings.Port}";
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
using Owin;
|
using Owin;
|
||||||
|
|
||||||
using RequestPlex.Core;
|
|
||||||
|
|
||||||
namespace RequestPlex.UI
|
namespace RequestPlex.UI
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
|
@ -9,9 +7,6 @@ namespace RequestPlex.UI
|
||||||
public void Configuration(IAppBuilder app)
|
public void Configuration(IAppBuilder app)
|
||||||
{
|
{
|
||||||
app.UseNancy();
|
app.UseNancy();
|
||||||
|
|
||||||
var s = new Setup();
|
|
||||||
s.SetupDb();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue