From 57442f16d8efc2d67fe97e59a7d93d422b92b049 Mon Sep 17 00:00:00 2001 From: TidusJar Date: Sat, 23 Jul 2016 10:11:25 +0100 Subject: [PATCH] Removed the other rootpath provider --- PlexRequests.UI/Bootstrapper.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PlexRequests.UI/Bootstrapper.cs b/PlexRequests.UI/Bootstrapper.cs index 85e7ae10e..03066d1cb 100644 --- a/PlexRequests.UI/Bootstrapper.cs +++ b/PlexRequests.UI/Bootstrapper.cs @@ -36,6 +36,7 @@ using Nancy.Bootstrappers.Ninject; using Nancy.Conventions; using Nancy.Cryptography; using Nancy.Diagnostics; +using Nancy.Hosting.Self; using Nancy.Session; using PlexRequests.Api.Interfaces; @@ -107,7 +108,11 @@ namespace PlexRequests.UI /// /// Set's the root path to the views folder, this means we don't have to recompile the views for every change. /// -// protected override IRootPathProvider RootPathProvider => new DebugRootPathProvider(); + protected override IRootPathProvider RootPathProvider => new DebugRootPathProvider(); +#endif +#if !DEBUG + + protected override IRootPathProvider RootPathProvider => new FileSystemRootPathProvider(); #endif protected override void ConfigureConventions(NancyConventions nancyConventions) {