db context hoes back to lib assembly...

This commit is contained in:
2018-06-11 13:27:12 +02:00
parent 76aff92ce9
commit bf8df5c5ea
10 changed files with 3518 additions and 18 deletions

View File

@ -53,7 +53,12 @@ namespace Yavsc
RequestPath = new PathString(Constants.AvatarsPath),
EnableDirectoryBrowsing = env.IsDevelopment()
};
var gitdirinfo = new DirectoryInfo(Startup.SiteSetup.GitRepository);
GitDirName = gitdirinfo.FullName;
if (!gitdirinfo.Exists) gitdirinfo.Create();
GitOptions = new FileServerOptions()
{
FileProvider = new PhysicalFileProvider(GitDirName),
@ -61,11 +66,11 @@ namespace Yavsc
EnableDirectoryBrowsing = env.IsDevelopment()
};
app.UseFileServer(UserFilesOptions);
app.UseFileServer(AvatarsOptions);
app.UseFileServer(GitOptions);
app.UseStaticFiles();
}
}