Skip to content

Commit 4641f58

Browse files
authored
ops: docker compose setup (#41)
change smtp host to container service name and run migrations with seeding in production environment
1 parent dcf44ec commit 4641f58

3 files changed

Lines changed: 3 additions & 12 deletions

File tree

compose.override.yaml

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/Web/Extensions/WebApplicationExtensions.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ public static class WebApplicationExtensions
66
{
77
public static async Task UseWebApplicationMiddleware(this WebApplication app)
88
{
9-
if (app.Environment.IsDevelopment())
10-
{
11-
await app.ApplyMigrations();
12-
await app.SeedDatabase();
13-
}
9+
await app.ApplyMigrations();
10+
await app.SeedDatabase();
1411

1512
if (!app.Environment.IsDevelopment())
1613
{

src/Web/appsettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"Default": "Server=movieboom.database,1433;Database=movieboom;User Id=sa;Password=Password123;Encrypt=false;TrustServerCertificate=true"
2525
},
2626
"Smtp": {
27-
"Host": "localhost",
27+
"Host": "movieboom.email",
2828
"Port": 1025,
2929
"EnableSsl": false,
3030
"FromAddress": "noreply@movieboom.com",

0 commit comments

Comments
 (0)