mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
Added the functionality to pass a port through an argument
This commit is contained in:
parent
24b2cd0a9c
commit
78c4ed2c06
1 changed files with 8 additions and 3 deletions
|
@ -48,6 +48,11 @@ namespace PlexRequests.UI
|
||||||
private static Logger Log = LogManager.GetCurrentClassLogger();
|
private static Logger Log = LogManager.GetCurrentClassLogger();
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
|
var uri = string.Empty;
|
||||||
|
if (args.Length > 0)
|
||||||
|
{
|
||||||
|
uri = args[0];
|
||||||
|
}
|
||||||
|
|
||||||
Log.Trace("Getting assembly version");
|
Log.Trace("Getting assembly version");
|
||||||
WriteOutVersion();
|
WriteOutVersion();
|
||||||
|
@ -57,8 +62,8 @@ namespace PlexRequests.UI
|
||||||
|
|
||||||
//ConfigureTargets(connection);
|
//ConfigureTargets(connection);
|
||||||
|
|
||||||
|
if(string.IsNullOrEmpty(uri))
|
||||||
var uri = GetStartupUri();
|
uri = GetStartupUri();
|
||||||
|
|
||||||
using (WebApp.Start<Startup>(uri))
|
using (WebApp.Start<Startup>(uri))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue