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

This commit is contained in:
Jamie Rees 2016-02-26 18:54:39 +00:00
parent e0347d6bbc
commit 81c492aa14
3 changed files with 5 additions and 7 deletions

View file

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