diff --git a/src/Web/Program.cs b/src/Web/Program.cs index bc0aac273..3ba2262ae 100644 --- a/src/Web/Program.cs +++ b/src/Web/Program.cs @@ -12,7 +12,7 @@ var app = builder.Build(); // Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) +if (app.Environment.IsDevelopment() && args.Contains("--init")) { await app.InitialiseDatabaseAsync(); }