diff --git a/Data/AppDbContext.cs b/Data/AppDbContext.cs index 483907e..230004f 100644 --- a/Data/AppDbContext.cs +++ b/Data/AppDbContext.cs @@ -25,11 +25,11 @@ namespace Data modelBuilder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly()); } - protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) - { - var dbPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ChapterOrganizer.db"); - optionsBuilder.UseSqlite($"Data Source={dbPath}"); - } + //protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + //{ + // var dbPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ChapterOrganizer.db"); + // optionsBuilder.UseSqlite($"Data Source={dbPath}"); + //} } public class EventDefinitionConfiguration : IEntityTypeConfiguration diff --git a/WebApp/Dockerfile b/WebApp/Dockerfile index 37d201c..a5aac24 100644 --- a/WebApp/Dockerfile +++ b/WebApp/Dockerfile @@ -29,4 +29,4 @@ RUN dotnet publish "./WebApp.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p: FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "WebApp.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "tsa-chapter-organizer.dll"] \ No newline at end of file diff --git a/WebApp/Properties/PublishProfiles/https___docker-registry.kolpacksoftware.com.pubxml b/WebApp/Properties/PublishProfiles/https___docker-registry.kolpacksoftware.com.pubxml index 160f455..748d5a6 100644 --- a/WebApp/Properties/PublishProfiles/https___docker-registry.kolpacksoftware.com.pubxml +++ b/WebApp/Properties/PublishProfiles/https___docker-registry.kolpacksoftware.com.pubxml @@ -13,4 +13,5 @@ 039e1539-eda8-4f4e-acc0-b8292827a3a9 <_TargetId>DockerCustomContainerRegistry - \ No newline at end of file + + diff --git a/WebApp/WebApp.csproj b/WebApp/WebApp.csproj index abc43dd..e2a0517 100644 --- a/WebApp/WebApp.csproj +++ b/WebApp/WebApp.csproj @@ -6,8 +6,9 @@ enable 73972335-ec46-4ad6-a959-8ebe0b06147d Linux - tsa-chapter-organizer + $(AssemblyName) TSA Chapter Organizer + tsa-chapter-organizer diff --git a/WebApp/appsettings.json b/WebApp/appsettings.json index f5a8e41..dfe8d50 100644 --- a/WebApp/appsettings.json +++ b/WebApp/appsettings.json @@ -7,7 +7,7 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - "SQLiteDefault": "Data Source=ChapterOrganizer.db" + "SQLiteDefault": "Data Source=data.db" }, "Name" : "Test" , "ChapterSettings": {