Skip to content

Commit

Permalink
Minor changes in initialization in StartupBase
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Oct 27, 2024
1 parent 586b9e6 commit 02406d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Grand.Infrastructure/StartupBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ private static IMvcCoreBuilder RegisterApplication(IServiceCollection services,
services.AddHttpContextAccessor();

RegisterConfigurations(services, configuration);

InitDatabase(services, configuration);

var settingsPath = Path.Combine(hostingEnvironment.ContentRootPath, CommonPath.AppData, configuration["Directory"] ?? "", CommonPath.SettingsFile);
DataSettingsManager.Initialize(settingsPath);

var pluginPaths= Path.Combine(hostingEnvironment.ContentRootPath, CommonPath.AppData, configuration["Directory"] ?? "", CommonPath.InstalledPluginsFile);
PluginPaths.Initialize(pluginPaths);

InitDatabase(services, configuration);

services.AddTransient<ValidationFilter>();
var mvcCoreBuilder = services.AddMvcCore(options =>
{
Expand Down

0 comments on commit 02406d4

Please sign in to comment.