diff --git a/Program.cs b/Program.cs index 0727468..b831607 100644 --- a/Program.cs +++ b/Program.cs @@ -13,6 +13,15 @@ if (!app.Environment.IsDevelopment()) app.UseHsts(); } +// create file +var configuration = app.Services.GetService(); +var filePath = configuration["ContentFilePath"]; + +if (!File.Exists(filePath)) +{ + File.WriteAllText(filePath, string.Empty); +} + app.UseHttpsRedirection(); app.UseStaticFiles(); diff --git a/content.txt b/content.txt deleted file mode 100644 index adb5568..0000000 --- a/content.txt +++ /dev/null @@ -1,38 +0,0 @@ -this is a testasdas - -thas -sdfsdfs - - -asdas - -asdasda -- asdas -- asdassasdas - - -asd -as -das -as -assa -as -dasd -asd -asd -asdassdfdsf - - - - - - - - - -dsfsd -das -das -dasd -asda -a