Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Server/Bit.TemplatePlayground.Server.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static async Task Main(string[] args)
{
await using var scope = app.Services.CreateAsyncScope();
var dbContext = scope.ServiceProvider.GetRequiredService<AppDbContext>();
await dbContext.Database.EnsureCreatedAsync(); // It's recommended to start using ef-core migrations.
await dbContext.Database.MigrateAsync(); // It's recommended to start using ef-core migrations.
}

app.ConfigureMiddlewares();
Expand Down
4 changes: 4 additions & 0 deletions src/Server/Bit.TemplatePlayground.Server.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
"ProductImagesDir": "attachments/products/",
"GoogleRecaptchaSecretKey": "6LdMKr4pAAAAANvngWNam_nlHzEDJ2t6SfV6L_DS",
"GoogleRecaptchaSecretKey_Comment": "Create one at https://console.cloud.google.com/security/recaptcha/create for Web Application Type and use site key in Client.Core",
"Hangfire": {
"UseIsolatedStorage": true,
"UseIsolatedStorage__Comment": "Useful for testing or in production when managing multiple codebases with a single database."
},
"Authentication": {
"Google": {
"Comment": "https://learn.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins",
Expand Down
6 changes: 3 additions & 3 deletions src/Server/Bit.TemplatePlayground.Server.AppHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
// Check out appsettings.json for credential settings.


var serverWebProject = builder.AddProject<Bit.TemplatePlayground_Server_Web>("serverweb") // Replace . with _ if needed to ensure the project builds successfully.
var serverWebProject = builder.AddProject<Bit_TemplatePlayground_Server_Web>("serverweb") // Replace . with _ if needed to ensure the project builds successfully.
.WithExternalHttpEndpoints();




// Blazor WebAssembly Standalone project.
builder.AddProject<Bit.TemplatePlayground_Client_Web>("clientwebwasm"); // Replace . with _ if needed to ensure the project builds successfully.
builder.AddProject<Bit_TemplatePlayground_Client_Web>("clientwebwasm"); // Replace . with _ if needed to ensure the project builds successfully.

if (builder.ExecutionContext.IsRunMode) // The following project is only added for testing purposes.
{
// Blazor Hybrid Windows project.
builder.AddProject<Bit.TemplatePlayground_Client_Windows>("clientwindows") // Replace . with _ if needed to ensure the project builds successfully.
builder.AddProject<Bit_TemplatePlayground_Client_Windows>("clientwindows") // Replace . with _ if needed to ensure the project builds successfully.
.WithExplicitStart();
}

Expand Down
7 changes: 4 additions & 3 deletions src/Server/Bit.TemplatePlayground.Server.Web/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Bit.TemplatePlayground.Server.Api.Data;
using Bit.TemplatePlayground.Client.Core.Services.Contracts;
using Bit.TemplatePlayground.Server.Api.Data;
using Bit.TemplatePlayground.Server.Web.Services;
using Bit.TemplatePlayground.Client.Core.Services.Contracts;
using Microsoft.EntityFrameworkCore;

namespace Bit.TemplatePlayground.Server.Web;

Expand Down Expand Up @@ -30,7 +31,7 @@ public static async Task Main(string[] args)
{
await using var scope = app.Services.CreateAsyncScope();
var dbContext = scope.ServiceProvider.GetRequiredService<AppDbContext>();
await dbContext.Database.EnsureCreatedAsync(); // It's recommended to start using ef-core migrations.
await dbContext.Database.MigrateAsync(); // It's recommended to start using ef-core migrations.
}

app.ConfigureMiddlewares();
Expand Down
Loading