diff --git a/UWLecturePlan/Controllers/LectureController.cs b/UWLecturePlan/Controllers/LectureController.cs index 0447cc9..fe45b5b 100644 --- a/UWLecturePlan/Controllers/LectureController.cs +++ b/UWLecturePlan/Controllers/LectureController.cs @@ -13,7 +13,7 @@ namespace UWLecturePlan.Controllers public IActionResult Index(LecturesViewModel model) { - LectureContext db = new(@"lecture.db"); + LectureContext db = new(@"Data/lecture.db"); model.Semester ??= GetSemester(DateTime.Now); diff --git a/UWLecturePlan/Dockerfile b/UWLecturePlan/Dockerfile index a506f4f..3c660b8 100644 --- a/UWLecturePlan/Dockerfile +++ b/UWLecturePlan/Dockerfile @@ -1,7 +1,7 @@ #See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -USER app +USER root WORKDIR /app EXPOSE 8080 EXPOSE 8081 diff --git a/UWLecturePlan/UWLecturePlan.csproj b/UWLecturePlan/UWLecturePlan.csproj index 72be10c..69af89c 100644 --- a/UWLecturePlan/UWLecturePlan.csproj +++ b/UWLecturePlan/UWLecturePlan.csproj @@ -17,4 +17,10 @@ + + + Always + + + diff --git a/UWLecturePlan/Views/Shared/_Layout.cshtml b/UWLecturePlan/Views/Shared/_Layout.cshtml index b768d74..98be0f5 100644 --- a/UWLecturePlan/Views/Shared/_Layout.cshtml +++ b/UWLecturePlan/Views/Shared/_Layout.cshtml @@ -3,7 +3,7 @@ - @ViewData["Title"] - UWLecturePlan + @ViewData["Title"] - UniForAll @@ -16,13 +16,14 @@ @RenderBody() @await RenderSectionAsync("Scripts", required: false) -