Attempt to fix the startup error in the new build system

This commit is contained in:
tidusjar 2020-01-17 14:53:25 +00:00
commit 2fd5f240ce
2 changed files with 10 additions and 5 deletions

View file

@ -23,6 +23,9 @@
"Ombi": { "Ombi": {
"commandName": "Project", "commandName": "Project",
"commandLineArgs": "--host http://*:3577", "commandLineArgs": "--host http://*:3577",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:3577/" "applicationUrl": "http://localhost:3577/"
} }
} }

View file

@ -212,11 +212,13 @@ namespace Ombi
app.UseSpa(spa => app.UseSpa(spa =>
{ {
if (env.IsDevelopment()) #if DEBUG
{ //if (env.IsDevelopment())
spa.Options.SourcePath = "ClientApp"; //{
spa.UseProxyToSpaDevelopmentServer("http://localhost:3578"); spa.Options.SourcePath = "ClientApp";
} spa.UseProxyToSpaDevelopmentServer("http://localhost:3578");
//}
#endif
}); });
} }