Added a url base

This commit is contained in:
tidusjar 2016-04-08 14:14:08 +01:00
parent 68624f6971
commit 1af3c21655
11 changed files with 54 additions and 31 deletions

View file

@ -46,6 +46,7 @@ namespace PlexRequests.UI
private static Logger Log = LogManager.GetCurrentClassLogger();
static void Main(string[] args)
{
var assetLocation = "assets";
var port = -1;
if (args.Length > 0)
{
@ -53,17 +54,20 @@ namespace PlexRequests.UI
int portResult;
if (!int.TryParse(args[0], out portResult))
{
Console.WriteLine("Incorrect Port format. Press any key.");
Console.ReadLine();
Environment.Exit(1);
Console.WriteLine("Didn't pass in a port");
Console.WriteLine("Must be the URL Base");
assetLocation = args[0];
}
else
{
port = portResult;
}
port = portResult;
}
Log.Trace("Getting product version");
WriteOutVersion();
var s = new Setup();
var cn = s.SetupDb();
var cn = s.SetupDb(assetLocation);
s.CacheQualityProfiles();
ConfigureTargets(cn);