diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-29 16:07:04 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-29 16:07:04 +0100 |
| commit | b7e09de3cb8709e5456b996984b5de8161202ef6 (patch) | |
| tree | 7fc0647a9b34b42c760c1a125c90fa221a6578bf /backend/Elements.Data/ApplicationContextFactory.cs | |
| parent | eb943058e89d38278393bc9da8d9df551be05a30 (diff) | |
Dockerize app for deployment and development
Diffstat (limited to 'backend/Elements.Data/ApplicationContextFactory.cs')
| -rw-r--r-- | backend/Elements.Data/ApplicationContextFactory.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/Elements.Data/ApplicationContextFactory.cs b/backend/Elements.Data/ApplicationContextFactory.cs index b8e4ebd..76f11e1 100644 --- a/backend/Elements.Data/ApplicationContextFactory.cs +++ b/backend/Elements.Data/ApplicationContextFactory.cs @@ -8,7 +8,7 @@ public class ApplicationContextFactory : IDesignTimeDbContextFactory<Application public ApplicationDbContext CreateDbContext(string[] args) { DbContextOptionsBuilder<ApplicationDbContext> optionsBuilder = new(); - optionsBuilder.UseSqlite("Data Source=elements.db"); + optionsBuilder.UseNpgsql("Server=database;Port=5432;Database=elements;User Id=elements;Password=elementspass"); return new ApplicationDbContext(optionsBuilder.Options); } |
