Removed the setup code out of the startup, since we attemtp to connect to the DB before that.

pull/13/head
Jamie Rees 9 years ago
parent e0347d6bbc
commit 81c492aa14

@ -20,7 +20,7 @@ TBC
#Installation
TBC
Just run the .exe! (Use mono if not on Windows `mono RequestPlex.UI.exe`)
#Configuration

@ -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}";

@ -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();
}
}
}

Loading…
Cancel
Save