From 2fd5f240ce5e8be1407d47eea1a6f7fce55eed0d Mon Sep 17 00:00:00 2001 From: tidusjar Date: Fri, 17 Jan 2020 14:53:25 +0000 Subject: [PATCH] Attempt to fix the startup error in the new build system --- src/Ombi/Properties/launchSettings.json | 3 +++ src/Ombi/Startup.cs | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Ombi/Properties/launchSettings.json b/src/Ombi/Properties/launchSettings.json index ef67aa820..6ceec857f 100644 --- a/src/Ombi/Properties/launchSettings.json +++ b/src/Ombi/Properties/launchSettings.json @@ -23,6 +23,9 @@ "Ombi": { "commandName": "Project", "commandLineArgs": "--host http://*:3577", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, "applicationUrl": "http://localhost:3577/" } } diff --git a/src/Ombi/Startup.cs b/src/Ombi/Startup.cs index 9bb5ef629..9a5667316 100644 --- a/src/Ombi/Startup.cs +++ b/src/Ombi/Startup.cs @@ -212,11 +212,13 @@ namespace Ombi app.UseSpa(spa => { - if (env.IsDevelopment()) - { - spa.Options.SourcePath = "ClientApp"; - spa.UseProxyToSpaDevelopmentServer("http://localhost:3578"); - } +#if DEBUG + //if (env.IsDevelopment()) + //{ + spa.Options.SourcePath = "ClientApp"; + spa.UseProxyToSpaDevelopmentServer("http://localhost:3578"); + //} +#endif }); }