Skip to content

Commit bd2ef8c

Browse files
committed
fix jobs connection string
1 parent 5553374 commit bd2ef8c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

MyApp/Configure.Db.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ public void Configure(IWebHostBuilder builder) => builder
2424
// json.DefaultSerializer = JsonSerializerType.ServiceStackJson;
2525
})
2626
)
27-
.AddPostgres(
28-
"jobs",
29-
"Host=localhost;Port=5432;Database=jobs;Username=jobs;Password=jobs;Include Error Detail=true;");
27+
.AddPostgres("jobs", connectionString.Replace("Database=ubixar;", "Database=jobs;"));
3028

3129
// $ dotnet ef migrations add CreateIdentitySchema
3230
// $ dotnet ef database update

MyApp/appsettings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
}
1414
},
1515
"AllowedHosts": "*",
16+
"ConnectionStrings": {
17+
"DefaultConnection": "Host=localhost;Port=5432;Database=ubixar;Username=ubixar;Password=ubixar;Include Error Detail=true;"
18+
},
1619
"AppConfig": {
1720
"AppName": "ubixar",
1821
"AppIcon": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M13.001 6a4 4 0 1 1 8 0a4 4 0 0 1-8 0M8.997 8.144l4.493 6.988l2.436-3.899L24.001 22H.18z'%3E%3C/path%3E%3C/svg%3E",

0 commit comments

Comments
 (0)