Skip to content

Commit

Permalink
Use absolute path when connecting to seed DB
Browse files Browse the repository at this point in the history
  • Loading branch information
reidst committed Dec 10, 2023
1 parent 9fddd0f commit 92675b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/DbInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static class DbInitializer

public static void Initialize(ISeeGreenContext context)
{
using SqliteConnection connection = new("Data Source=wwwroot/seed.db");
using SqliteConnection connection = new($"Data Source={Directory.GetCurrentDirectory()}/wwwroot/seed.db");
connection.Open();

if (!context.Categories.Any())
Expand Down

0 comments on commit 92675b8

Please sign in to comment.